Import prism in right order.
This commit is contained in:
parent
79257dfb13
commit
27c35861b5
|
@ -7,9 +7,11 @@ import Icons from 'uikit/dist/js/uikit-icons.min.js';
|
|||
import UIkit from 'uikit/dist/js/uikit.min.js';
|
||||
UIkit.use(Icons);
|
||||
|
||||
import "prismjs/components/prism-json";
|
||||
/* eslint-disable */
|
||||
import Prism from "prismjs";
|
||||
import "prismjs/components/prism-json";
|
||||
Prism.highlightAll();
|
||||
/* eslint-enable */
|
||||
|
||||
import { PageState } from "./PageState.js";
|
||||
import {
|
||||
|
|
|
@ -34,6 +34,7 @@ export async function prePageChecks() {
|
|||
await prePageChecksReal();
|
||||
} catch (e) {
|
||||
console.log("OHNO", e)
|
||||
setErrorText(e.message);
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue