MCPcopy Create free account
hub / github.com/WhiteSevs/TamperMonkeyScript / callback

Function callback

lib/Qmsg/src/QmsgEvent.ts:12–38  ·  view source on GitHub ↗

* 添加visibilitychange事件监听 * 当页面切换时,如果切换前的页面存在Qmsg实例且未关闭,切换后,页面活跃度会降低,导致setTimeout/setInterval失效或丢失事件 * 监听visibilitychange,判断切换回来时,如果当前时间-开始时间大于timeout,则关闭 * 如果设置了动画,使用close,否则使用destroy

()

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 15

openMethod · 0.50
handlerMethod · 0.50
listMethod · 0.50
setMethod · 0.50
deleteMethod · 0.50
getMethod · 0.50
addMethod · 0.50
updateMethod · 0.50
listMethod · 0.50
setMethod · 0.50
deleteMethod · 0.50
hookFetchResponseFunction · 0.50

Calls 1

closeMethod · 0.65

Tested by

no test coverage detected