Skip to content

Commit eba68ce

Browse files
KlausTrainerthebigredgeek
authored andcommitted
fix(browser): prevent ReferenceError in workers (#393)
fixes #382
1 parent 280a64d commit eba68ce

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/browser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,6 @@ function localstorage() {
182182
}
183183

184184
/** Attach to Window*/
185-
if (window) {
185+
if (typeof window !== 'undefined') {
186186
window.debug = exports;
187187
}

0 commit comments

Comments
 (0)