mirror of
https://gitee.com/mafgwo/stackedit
synced 2024-11-16 03:32:40 +08:00
校验在线的js改成外部的
This commit is contained in:
parent
4e9acad585
commit
31bec53520
|
@ -69,7 +69,7 @@ export default {
|
|||
await new Promise((resolve, reject) => {
|
||||
script.onload = resolve;
|
||||
script.onerror = reject;
|
||||
script.src = `/empty.js?${Date.now()}`;
|
||||
script.src = `https://res.wx.qq.com/open/js/jweixin-1.2.0.js?${Date.now()}`;
|
||||
try {
|
||||
document.head.appendChild(script); // This can fail with bad network
|
||||
timeout = setTimeout(reject, networkTimeout);
|
||||
|
|
Loading…
Reference in New Issue
Block a user