Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f78d95f

Browse files
committed
failover to globalThis
1 parent b18929f commit f78d95f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

notebook.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// notebook.js may be freely distributed under the MIT license.
33
(function () {
44
var VERSION = "0.8.2";
5-
var root = this;
5+
var root = this || globalThis;
66
var isBrowser = root.window !== undefined;
77
var doc;
88

0 commit comments

Comments
 (0)