initial commit
This commit is contained in:
+14
@@ -0,0 +1,14 @@
|
||||
'use strict';
|
||||
|
||||
const fallbackWindow = {};
|
||||
function locateWindow() {
|
||||
if (typeof window !== "undefined") {
|
||||
return window;
|
||||
}
|
||||
else if (typeof self !== "undefined") {
|
||||
return self;
|
||||
}
|
||||
return fallbackWindow;
|
||||
}
|
||||
|
||||
exports.locateWindow = locateWindow;
|
||||
Reference in New Issue
Block a user