Skip to content

Commit

Permalink
Update plugin-rolling-release-legacy
Browse files Browse the repository at this point in the history
  • Loading branch information
Ayideyia committed Dec 22, 2024
1 parent 074a965 commit 4e18acf
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions plugins/GFS/plugin-rolling-release-legacy.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,22 @@ const onRun = async () => {
await Rolling()
}

/* 触发器 启动APP时 */
const onStartup = async () => {
if (Plugin.AutoRollingMode === 'onStartup') {
// 延迟检测,确保内核已经启动
setTimeout(() => Rolling(false), (Plugin.AutoRollingDelay || 10) * 1000)
}
}

/* 触发器 APP就绪后 */
const onReady = async () => {
if (Plugin.AutoRollingMode === 'onReady') {
// 延迟检测,确保内核已经启动
setTimeout(() => Rolling(false), (Plugin.AutoRollingDelay || 10) * 1000)
}
}

/*
* 右键菜单 - 滚动版本
* params: confirm 是否进行交互式确认
Expand Down

0 comments on commit 4e18acf

Please sign in to comment.