chrisguttandin / worker-timers

A replacement for setInterval() and setTimeout() which works in unfocused windows.
MIT License
590 stars 25 forks source link

低版本安卓webview不兼容 #359

Closed overofheight closed 4 years ago

overofheight commented 4 years ago

在低版本安卓webview下,开发者编译模式 webpack-dev-server下, 会报兼容性错误。Uncaught SyntaxError: Use of const in strict mode

chrisguttandin commented 4 years ago

Hi @overofheight,

can you please provide some further details?

I tried to translate the message and from what I can tell it looks like an outdated webview is used which doesn't understand the const keyword. Are you using the ES5 bundle? If not that might already solve the problem. Only the modern ES2018 bundle should make use constant variables.

chrisguttandin commented 4 years ago

Hi @overofheight, I'm going to close this issue now since there is no way for me to reproduce it.

Please let me know if the error persists and you have time to provide further information.