Skip to content

Commit

Permalink
deploy: a7fd9e7
Browse files Browse the repository at this point in the history
  • Loading branch information
igotinfected committed Dec 19, 2023
1 parent cdd0619 commit 4019435
Show file tree
Hide file tree
Showing 152 changed files with 17,782 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
// noinspection JSUnusedGlobalSymbols

let hasBeforeStartBeenCalled = false;

export function beforeWebStart() {
beforeStart();
}


export function beforeWebAssemblyStart() {
beforeStart();
}

export function beforeServerStart() {
beforeStart();
}

export function beforeStart() {
if (hasBeforeStartBeenCalled) {
return;
}
hasBeforeStartBeenCalled = true;

window.Samples = window.Samples || {};
window.Samples.Shared = window.Samples.Shared || {
highlightElement: function (content, element) {
delete element.dataset.highlighted;
element.textContent = content;
// noinspection JSUnresolvedReference
hljs.highlightElement(element);
}
};
}
Loading

0 comments on commit 4019435

Please sign in to comment.