Skip to content

Commit

Permalink
Added check for window (#1446)
Browse files Browse the repository at this point in the history
If nodejs, use global as scope, else use window.

Closes #1445
  • Loading branch information
mimse authored and joeyparrish committed Jun 1, 2018
1 parent 7837519 commit 063bddd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ Jozef Chúťka <[email protected]>
JW Player <*@jwplayer.com>
Lucas Gabriel Sánchez <[email protected]>
Mattias Wadman <[email protected]>
Morten Hansen <[email protected]>
Nick Desaulniers <[email protected]>
Oskar Arvidsson <[email protected]>
Patrick Kunka <[email protected]>
Expand Down
1 change: 1 addition & 0 deletions CONTRIBUTORS
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ Lucas Gabriel Sánchez <[email protected]>
Matias Russitto <[email protected]>
Mattias Wadman <[email protected]>
Michelle Zhuo <[email protected]>
Morten Hansen <[email protected]>
Natalie Harris <[email protected]>
Nick Desaulniers <[email protected]>
Niklas Korz <[email protected]>
Expand Down
2 changes: 1 addition & 1 deletion build/wrapper.template.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
if (typeof(module)!="undefined"&&module.exports)module.exports=g.shaka;
else if (typeof(define)!="undefined" && define.amd)define(function(){return g.shaka});
else this.shaka=g.shaka;
}).call(window);
}).call(typeof window === "object" ? window : global);

0 comments on commit 063bddd

Please sign in to comment.