This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const SHA1 = blob => { | |
// console.log("sha1 is called") | |
if(workers >= maxWorker){ | |
// console.log("sha1 : check worker") | |
sha1Queue.push(SHA1(blob)); | |
}else{ | |
// console.log("sha1 : done about checking worker") | |
return new Promise((resolve, reject) => { | |
const worker = new Worker("../assets/js/plugins/rusha.min.js"); |