1
0
Fork 0

Import prism in right order.

This commit is contained in:
Kitteh 2021-05-03 09:30:22 +01:00
parent 79257dfb13
commit 27c35861b5
2 changed files with 4 additions and 1 deletions

View file

@ -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 {

View file

@ -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;