Merge pull request #5 from robertknight/browserify-fix

Fix atob under CommonJS module bundlers (eg. Browserify)
这个提交包含在:
AJ ONeal 2016-04-09 15:29:04 -06:00
当前提交 372a2dff10
共有 2 个文件被更改,包括 5 次插入1 次删除

查看文件

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

查看文件

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