Skip to content

Commit

Permalink
Give the dog a bone
Browse files Browse the repository at this point in the history
  • Loading branch information
dgrammatiko committed Nov 22, 2021
1 parent f094d72 commit aa9d6ea
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ document.addEventListener('keydown', (evt) => {
// Without this, the background color outside of the codemirror wrapper element remains white.
// [TMP] commented temporary, cause JS error: Uncaught TypeError: Cannot read property 'replace' of undefined
if(CMsettings.config.theme) {
document.documentElement.className += CMsettings.config.theme.replace(/(^|\s)\s*/g, " cm-s-");
document.documentElement.className += CMsettings.config.theme.replace(/(^|\s)\s*/g, ' cm-s-');
}

window.onload = start;
Expand Down

0 comments on commit aa9d6ea

Please sign in to comment.