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';
|
import UIkit from 'uikit/dist/js/uikit.min.js';
|
||||||
UIkit.use(Icons);
|
UIkit.use(Icons);
|
||||||
|
|
||||||
import "prismjs/components/prism-json";
|
/* eslint-disable */
|
||||||
import Prism from "prismjs";
|
import Prism from "prismjs";
|
||||||
|
import "prismjs/components/prism-json";
|
||||||
Prism.highlightAll();
|
Prism.highlightAll();
|
||||||
|
/* eslint-enable */
|
||||||
|
|
||||||
import { PageState } from "./PageState.js";
|
import { PageState } from "./PageState.js";
|
||||||
import {
|
import {
|
||||||
|
|
|
@ -34,6 +34,7 @@ export async function prePageChecks() {
|
||||||
await prePageChecksReal();
|
await prePageChecksReal();
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.log("OHNO", e)
|
console.log("OHNO", e)
|
||||||
|
setErrorText(e.message);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in a new issue