Skip to content

Commit c3c49dd

Browse files
committed
Update utils.js
1 parent 7a827b4 commit c3c49dd

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

utils.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,11 @@ let paste = async () => {
479479

480480
// HTTP Request
481481

482-
if (!axios) window.axios = null;
482+
try {
483+
axios = axios;
484+
} catch(e) {
485+
window.axios = null;
486+
}
483487

484488
axios = {
485489
'get': (url, token, noParse) => {

0 commit comments

Comments
 (0)