UNPKG

509 BJavaScriptView Raw
1 return nacl_raw.ready.then(function () {
2 var nacl = nacl_cooked(nacl_raw);
3 nacl.nacl_raw = nacl_raw;
4 on_ready(nacl);
5 return nacl;
6 });
7 })((typeof window !== 'undefined') ? window : undefined_reference_value,
8 (typeof document !== 'undefined') ? document : undefined_reference_value);
9 }
10};
11
12// export common.js module to allow one js file for browser and node.js
13if (typeof module !== 'undefined' && module.exports) {
14 module.exports = nacl_factory;
15}