You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
清空浏览器缓存后访问地址,一定会出现eruda入口,但是在反复刷新几次(不超过10次)页面后,eruda入口就不再展示出来。因此我使用了window.onerror捕获页面错误,发现不出现eruda入口的场景,均报了script error错误和Uncaught ReferenceError: eruda is not defined
环境同步
机型:小米MAX
访问地址: http://eruda.liriliri.io/
浏览器:UC浏览器 V11.9.4.974
问题描述
清空浏览器缓存后访问地址,一定会出现eruda入口,但是在反复刷新几次(不超过10次)页面后,eruda入口就不再展示出来。因此我使用了window.onerror捕获页面错误,发现不出现eruda入口的场景,均报了script error错误和Uncaught ReferenceError: eruda is not defined
猜测原因
如下方式反复动态eruda.js文件时,可能出现加入的eruda.js内部执行出错而报script error 错误。从而导致eruda引用未注入成功,此时再使用eruda.init 就会报 ReferenceError
The text was updated successfully, but these errors were encountered: