Skip to content

Commit

Permalink
Merge pull request naturalcrit#3191 from 5e-Cleric/Navigator-node-err…
Browse files Browse the repository at this point in the history
…or-fix

Navigator Node Error Fix
  • Loading branch information
calculuschild committed Dec 16, 2023
2 parents d6eaa81 + 3bbcb1b commit 985a984
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shared/naturalcrit/codeEditor/codeEditor.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const cx = require('classnames');
const closeTag = require('./close-tag');

let CodeMirror;
if(typeof navigator !== 'undefined'){
if(typeof window !== 'undefined'){
CodeMirror = require('codemirror');

//Language Modes
Expand Down

0 comments on commit 985a984

Please sign in to comment.