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:
parent
43d32af540
commit
6df976d1f3
1 changed files with 14 additions and 16 deletions
|
@ -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 {};
|
||||
}
|
||||
})();
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue