aboutsummaryrefslogtreecommitdiff
path: root/common/Storage.js
diff options
context:
space:
mode:
authorRuben Rodriguez <ruben@fsf.org>2019-04-29 17:55:18 -0400
committerRuben Rodriguez <ruben@fsf.org>2019-04-29 17:55:18 -0400
commitef4efa91207e1ad42b4a0bf1d54a14e5c1bea298 (patch)
tree5d67683fdf4f6e2de356bfcb6096820cd380b143 /common/Storage.js
parentc6fafeed2ace4abd083b8e33d0846987dc9333fc (diff)
parentb4ab7ef958d7d3d0761650b1404bf286d05f26cd (diff)
Merge branch 'master' of ssh://pagure.io/librejs
Diffstat (limited to 'common/Storage.js')
-rw-r--r--common/Storage.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/Storage.js b/common/Storage.js
index 8010f3f..62b7b19 100644
--- a/common/Storage.js
+++ b/common/Storage.js
@@ -133,7 +133,6 @@ class ListStore {
}
}
-var jssha = require('jssha');
function hash(source){
var shaObj = new jssha("SHA-256","TEXT")
shaObj.update(source);
@@ -142,4 +141,5 @@ function hash(source){
if (typeof module === "object") {
module.exports = { ListStore, Storage, hash };
+ var jssha = require('jssha');
}