mirror of
https://github.com/penpot/penpot.git
synced 2026-03-06 18:21:09 +00:00
🐛 Fix advanced compilation of util.globals ns.
This commit is contained in:
@@ -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 {};
|
||||
}
|
||||
})();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user