Commit 0ca6dbfe authored by Gokulakrishna's avatar Gokulakrishna
Browse files

terminate worker when done

parent 26753c52
......@@ -32,6 +32,8 @@ worker();
loadworker.onmessage = function(e) {
dict=LZString.decompressFromUTF16(e.data).split("=+=")
loadworker.terminate();
loadworker=undefined;
// console.log(dict);
//console.log(dict);
// =+= because when we go a split again at comma, will cause issues
......@@ -126,4 +128,4 @@ worker.onmessage = function(e) {
result=LZString.decompress(string2);
console.log(result);
} */
\ No newline at end of file
} */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment