Skip to content

Commit

Permalink
Merge pull request #2138 from Rounak-stha/fix-themeToggle-nocodemirror
Browse files Browse the repository at this point in the history
Fixed #2133 Theme Toggle on without_codemirror Mode
  • Loading branch information
bitwiseman authored Apr 28, 2023
2 parents b3291fe + d4ef353 commit 3b17448
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web/onload.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ $(function() {
the.editor = CodeMirror.fromTextArea(textArea, {
lineNumbers: true
});
setPreferredColorScheme();

set_editor_mode();
the.editor.focus();

Expand All @@ -37,6 +37,7 @@ $(function() {
});
}

setPreferredColorScheme();

$(window).bind('keydown', function(e) {
if ((e.ctrlKey || e.metaKey) && e.keyCode === 13) {
Expand Down

0 comments on commit 3b17448

Please sign in to comment.