We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0cfef4b commit d9d0297Copy full SHA for d9d0297
src/main/resources/META-INF/resources/frontend/code-viewer.ts
@@ -25,8 +25,8 @@ import {
25
26
import {customElement} from 'lit/decorators.js';
27
28
-//@ts-ignore
29
-import * as Prism from "./prism.js";
+import "./prism.js";
+
30
@customElement("code-viewer")
31
export class CodeViewer extends LitElement {
32
@@ -193,8 +193,7 @@ pre[class*="language-"] {
193
code.setAttribute("class", "language-" + language);
194
code.innerHTML = self.escapeHtml(this.responseText);
195
196
- //@ts-ignore
197
- Prism.highlightAllUnder(self);
+ (window as any).Prism.highlightAllUnder(self);
198
}};
199
xhr.open('GET', sourceUrl, true);
200
xhr.send();
0 commit comments