Skip to content

Commit bdf400c

Browse files
committed
Merge pull request #288 from mwcz/reveal-global-when-amd
in the AMD case, reveal the global right away
2 parents fd2dcf8 + 3f85f56 commit bdf400c

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)