Skip to content

Commit f43098d

Browse files
committed
attach to this rather than window to support web workers (closes #8)
1 parent 15896a4 commit f43098d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

base64.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
;(function () {
22

33
var
4-
object = typeof exports != 'undefined' ? exports : window,
4+
object = typeof exports != 'undefined' ? exports : this, // #8: web workers
55
chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=',
66
INVALID_CHARACTER_ERR = (function () {
77
// fabricate a suitable error object

base64.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)