mirror of
https://github.com/ikun0014/lx-music-mobile.git
synced 2025-05-23 22:37:41 +08:00
修复潜在问题
This commit is contained in:
parent
0c4c8ea9ce
commit
42d570139d
@ -66,7 +66,10 @@ globalThis.lx_setup = (key, id, name, description, version, author, homepage, ra
|
||||
if (timeoutId > 90000000000) throw new Error('max timeout')
|
||||
const id = timeoutId++
|
||||
callbacks.set(id, {
|
||||
callback,
|
||||
callback(...args) {
|
||||
// eslint-disable-next-line n/no-callback-literal
|
||||
callback(...args)
|
||||
},
|
||||
params,
|
||||
})
|
||||
nativeFuncs.set_timeout(id, parseInt(timeout))
|
||||
|
Loading…
x
Reference in New Issue
Block a user