|
@@ -46,9 +46,8 @@ const DURATION = 2000
|
|
|
export default function autoRefresh () {
|
|
|
setTimeout(async () => {
|
|
|
const willUpdate = await needUpdate()
|
|
|
- console.log(willUpdate)
|
|
|
if (willUpdate) {
|
|
|
- const result = confirm('检测到有新的脚本,是否刷新页面?')
|
|
|
+ const result = confirm('检测到有版本更新,是否刷新页面?')
|
|
|
if (result) {
|
|
|
location.reload()
|
|
|
}
|