Skip to content

Commit 7a827b4

Browse files
committed
Update worker-channel.js
1 parent 18a7f12 commit 7a827b4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

worker/worker-channel.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,11 @@ function enableWorkerLogs() {
114114
}
115115

116116

117-
if (!axios) window.axios = null;
117+
try {
118+
axios = axios;
119+
} catch(e) {
120+
window.axios = null;
121+
}
118122

119123
axios = {
120124
'get': (url, token, noParse) => {

0 commit comments

Comments
 (0)