mirror of
https://github.com/penpot/penpot.git
synced 2025-07-28 04:47:19 +02:00
✨ Improve globals handling on fronted application.
This commit is contained in:
parent
b0749b5595
commit
341bb8495a
5 changed files with 49 additions and 48 deletions
|
@ -21,6 +21,8 @@
|
|||
goog.provide("app.util.globals");
|
||||
|
||||
goog.scope(function() {
|
||||
app.util.globals.global = goog.global;
|
||||
|
||||
app.util.globals.window = (function() {
|
||||
if (typeof goog.global.window !== "undefined") {
|
||||
return goog.global.window;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue