新增 window.temporaryStore

This commit is contained in:
fofolee
2022-04-12 10:54:35 +08:00
parent 8df2305879
commit a02392d7b5
7 changed files with 52 additions and 24 deletions

View File

@@ -177,6 +177,20 @@ if (process.platform == 'win32') quickcommand.runVbs = function(script) {
})
}
window.temporaryStore = {
listeners: {}
}
window.temporaryStoreSoldOut = () => {
_.forIn(temporaryStore.listeners, (listener, key) => {
document.removeEventListener(...listener)
})
window.temporaryStore = {
listeners: {}
}
}
// python -c
window.runPythonCommand = py => {
try {