Skip to content

Commit 3f85f56

Browse files
committed
in the AMD case, reveal the global right away
This is to accomodate synchronous code that might be running alongside AMD modules. The AMD case already exposes the window.Raven global, however previous to this patch it waited until the AMD module was specified as a dependency before initializing the global.
1 parent f6e8cbe commit 3f85f56

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

template/_footer.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
// Expose Raven to the world
22
if (typeof define === 'function' && define.amd) {
33
// AMD
4+
window.Raven = Raven;
45
define('raven', function(Raven) {
5-
return (window.Raven = Raven);
6+
return Raven;
67
});
78
} else if (typeof module === 'object') {
89
// browserify

0 commit comments

Comments
 (0)