summaryrefslogtreecommitdiff
path: root/backend/browser.py
diff options
context:
space:
mode:
Diffstat (limited to 'backend/browser.py')
-rw-r--r--backend/browser.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/backend/browser.py b/backend/browser.py
index 323fb9c3..a62e282a 100644
--- a/backend/browser.py
+++ b/backend/browser.py
@@ -80,10 +80,13 @@ class PluginBrowser:
async def request_plugin_install(self, artifact, version, hash):
request_id = str(time())
self.install_requests[request_id] = PluginInstallContext(artifact, version, hash)
- tab = await get_tab("QuickAccess")
+ tab = await get_tab("SP")
await tab.open_websocket()
- await tab.evaluate_js(f"addPluginInstallPrompt('{artifact}', '{version}', '{request_id}')")
+ await tab.evaluate_js(f"DeckyPluginLoader.addPluginInstallPrompt('{artifact}', '{version}', '{request_id}')")
async def confirm_plugin_install(self, request_id):
request = self.install_requests.pop(request_id)
- await self._install(request.gh_url, request.version, request.hash) \ No newline at end of file
+ await self._install(request.gh_url, request.version, request.hash)
+
+ def cancel_plugin_install(self, request_id):
+ self.install_requests.pop(request_id) \ No newline at end of file