Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion Dependencies/monaco-textmate.bundle/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,22 @@

setTimeout(() => {
if (typeof editor === "undefined") {
location.reload();
// Special handling for Lockdown Mode (no WebAssembly)
// https://github.com/thebaselab/codeapp/issues/895
if (typeof WebAssembly === "undefined") {
const editor = monaco.editor.create(
document.getElementById("container"),
{
value: '',
language: "javascript",
theme: "vs-dark",
}
);
window.editor = editor;
applyListeners(editor)
}else {
location.reload();
}
}
}, 1000);

Expand Down