From f3ab0f59897c4cb25a921be8ae3b0a9b55b3d3f4 Mon Sep 17 00:00:00 2001 From: tza Date: Tue, 10 May 2022 23:17:09 +0300 Subject: Plugin store button now uses built-in browser --- plugin_loader/static/plugin_page.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'plugin_loader/static/plugin_page.js') diff --git a/plugin_loader/static/plugin_page.js b/plugin_loader/static/plugin_page.js index d571cfe3..b327cd1c 100644 --- a/plugin_loader/static/plugin_page.js +++ b/plugin_loader/static/plugin_page.js @@ -67,7 +67,7 @@ function addPluginInstallPrompt(artifact, version, request_id) { function createTitle(text) { return ` -
${text}${SHOP_ICON}
+
${text}
${SHOP_ICON}
`; } @@ -93,10 +93,10 @@ function addPluginInstallPrompt(artifact, version, request_id) { inject(); document.getElementById("plugin_title").onclick = function() { reloadIframe(); - document.getElementById("plugin_title").innerHTML = `Plugins ${SHOP_ICON}`; + document.getElementById("plugin_title").innerText = `Plugins`; + document.getElementById("open_shop_button").style.display = 'block'; } document.getElementById("open_shop_button").onclick = function(ev) { - ev.stopPropagation(); console.debug(JSON.stringify({ "id": 1, "method": "open_plugin_store", @@ -106,6 +106,7 @@ function addPluginInstallPrompt(artifact, version, request_id) { window.onmessage = function(ev) { let title = ev.data; if (title.startsWith("PLUGIN_LOADER__")) { + document.getElementById("open_shop_button").style.display = 'none'; document.getElementById("plugin_title").innerHTML = ` -- cgit v1.2.3