Skip to content

Commit ba97664

Browse files
josephcsiblecdsmith
authored andcommitted
Fix #1641: be resilient to WURFL failing to load
1 parent a553dab commit ba97664

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/js/codeworld.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ function initCodeworld() {
334334
lineNumbers: true,
335335
autofocus: true,
336336
matchBrackets: true,
337-
styleActiveLine: !WURFL || !WURFL.is_mobile,
337+
styleActiveLine: !window.WURFL || !window.WURFL.is_mobile,
338338
showTrailingSpace: true,
339339
indentWithTabs: false,
340340
indentUnit: 2,

0 commit comments

Comments
 (0)