Merge pull request #5 from robertknight/browserify-fix

Fix atob under CommonJS module bundlers (eg. Browserify)
This commit is contained in:
AJ ONeal 2016-04-09 15:29:04 -06:00
commit 372a2dff10
2 changed files with 5 additions and 1 deletions

View File

@ -29,4 +29,8 @@
}
w.atob = atob;
if (typeof module !== 'undefined') {
module.exports = atob;
}
}(window));

View File

@ -2,7 +2,7 @@
(function () {
"use strict";
var atob = require('./index')
var atob = require('.')
, encoded = "SGVsbG8gV29ybGQ="
, unencoded = "Hello World"
/*