Skip to content

Commit

Permalink
Merge pull request #393 from getsentry/stuffz
Browse files Browse the repository at this point in the history
Always expose window.Raven no matter what the loader is
  • Loading branch information
mattrobenolt committed Oct 22, 2015
2 parents 6fc3861 + ae5baca commit c7f8840
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions template/_footer.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
// This is being exposed no matter what because there are too many weird
// usecases for how people use Raven. If this is really a problem, I'm sorry.
window.Raven = Raven;

// Expose Raven to the world
if (typeof define === 'function' && define.amd) {
// AMD
window.Raven = Raven;
define('raven', [], function() {
return Raven;
});
Expand All @@ -11,9 +14,6 @@ if (typeof define === 'function' && define.amd) {
} else if (typeof exports === 'object') {
// CommonJS
exports = Raven;
} else {
// Everything else
window.Raven = Raven;
}

})(typeof window !== 'undefined' ? window : this);

0 comments on commit c7f8840

Please sign in to comment.