0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-12 18:18:24 -05:00

🐛 Fix advanced compilation of util.globals ns.

This commit is contained in:
Andrey Antukh 2021-01-18 23:53:24 +01:00
parent 43d32af540
commit 6df976d1f3

View file

@ -21,22 +21,20 @@
goog.provide("app.util.globals");
goog.scope(function() {
var win;
if (typeof goog.global.window !== "undefined") {
win = goog.global.window;
} else {
win = {};
}
app.util.globals.window = (function() {
if (typeof goog.global.window !== "undefined") {
return goog.global.window;
} else {
return {};
}
})();
app.util.globals.window = win;
var loc;
if (typeof goog.global.location !== "undefined") {
loc = goog.global.location;
} else {
loc = {};
}
app.util.globals.location = loc;
app.util.globals.location = (function() {
if (typeof goog.global.location !== "undefined") {
return goog.global.location;
} else {
return {};
}
})();
});