We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9bfa3f5 commit dc997e3Copy full SHA for dc997e3
src/opal.js
@@ -31,9 +31,9 @@
31
if (!('log' in console)) { console.log = function () {}; }
32
if (!('warn' in console)) { console.warn = console.log; }
33
34
- if (typeof(this.Opal) !== 'undefined') {
+ if (typeof(global_object.Opal) !== 'undefined') {
35
console.warn('Opal already loaded. Loading twice can cause troubles, please fix your setup.');
36
- return this.Opal;
+ return global_object.Opal;
37
}
38
39
var nil;
0 commit comments