Adjust for Debugging

This commit is contained in:
MengYX
2020-02-07 20:17:45 +08:00
parent b4be250585
commit 34df70ba70
3 changed files with 26 additions and 9 deletions

View File

@@ -26,7 +26,7 @@
}
},
mounted() {
if (document.location.host !== "") {
if (document.location.host !== "" && process.env.NODE_ENV === 'production') {
//todo: Fail on Hot Reload
const worker = require("workerize-loader!../decrypt/common");
this.thread_num = navigator.hardwareConcurrency || 1;