|
@@ -21,14 +21,14 @@
|
|
|
* Source.
|
|
* Source.
|
|
|
*/
|
|
*/
|
|
|
|
|
|
|
|
-/* global window */
|
|
|
|
|
|
|
+/* global window, globalThis */
|
|
|
|
|
|
|
|
-this.singlefile.lib.core = this.singlefile.lib.core || (() => {
|
|
|
|
|
|
|
+this.singlefile.lib.core = this.singlefile.lib.core || (globalThis => {
|
|
|
|
|
|
|
|
const DEBUG = false;
|
|
const DEBUG = false;
|
|
|
|
|
|
|
|
- const Set = window.Set;
|
|
|
|
|
- const Map = window.Map;
|
|
|
|
|
|
|
+ const Set = globalThis.Set;
|
|
|
|
|
+ const Map = globalThis.Map;
|
|
|
|
|
|
|
|
let util, cssTree;
|
|
let util, cssTree;
|
|
|
|
|
|
|
@@ -2229,4 +2229,4 @@ this.singlefile.lib.core = this.singlefile.lib.core || (() => {
|
|
|
|
|
|
|
|
return { getClass };
|
|
return { getClass };
|
|
|
|
|
|
|
|
-})();
|
|
|
|
|
|
|
+})(typeof globalThis == "object" ? globalThis : window);
|