Skip to content

Commit 488a790

Browse files
committed
Make uuid4 func defensive against window not existing
1 parent 2ed8093 commit 488a790

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/raven.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1644,7 +1644,7 @@ function parseUrl(url) {
16441644
};
16451645
}
16461646
function uuid4() {
1647-
var crypto = window.crypto || window.msCrypto;
1647+
var crypto = _window.crypto || _window.msCrypto;
16481648

16491649
if (!isUndefined(crypto) && crypto.getRandomValues) {
16501650
// Use window.crypto API if available

0 commit comments

Comments
 (0)