Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
buu700 committed Oct 5, 2017
1 parent accc3f2 commit 76016bc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion libsodium
9 changes: 6 additions & 3 deletions wrapper/wrap-template.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
(function(root) {
function expose_wrappers(exports, libsodium) {
function expose_wrappers(exportsPromise, libsodium) {
"use strict";

var output_format = "uint8array";
exportsPromise = libsodium.ready.then(function() {
var exports = {};
var output_format = "uint8array";

return libsodium.ready.then(function() {
if (libsodium._sodium_init() !== 0) {
throw new Error("libsodium was not correctly initialized.");
}
Expand Down Expand Up @@ -571,6 +572,8 @@

return exports;
});

return exportsPromise;
}

var _onload =
Expand Down

0 comments on commit 76016bc

Please sign in to comment.