From d5964ee4d45c95526ad95df300609d6095fc570d Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Fri, 12 Feb 2021 23:23:26 -0500 Subject: [PATCH] Rename html files (#1377) * Rename context.html to action-popup.html * Rename float.html to popup.html --- dev/data/manifest-variants.json | 4 ++-- ext/{context.html => action-popup.html} | 0 ext/fg/js/popup.js | 2 +- ext/manifest.json | 4 ++-- ext/{float.html => popup.html} | 0 5 files changed, 5 insertions(+), 5 deletions(-) rename ext/{context.html => action-popup.html} (100%) rename ext/{float.html => popup.html} (100%) diff --git a/dev/data/manifest-variants.json b/dev/data/manifest-variants.json index 3bb17029..9d7c74d4 100644 --- a/dev/data/manifest-variants.json +++ b/dev/data/manifest-variants.json @@ -25,7 +25,7 @@ "128": "images/icon128.png" }, "default_title": "Yomichan", - "default_popup": "context.html" + "default_popup": "action-popup.html" }, "background": { "page": "background.html", @@ -111,7 +111,7 @@ } }, "web_accessible_resources": [ - "float.html", + "popup.html", "template-renderer.html" ], "content_security_policy": "default-src 'self'; style-src 'self' 'unsafe-inline'; media-src *; connect-src *" diff --git a/ext/context.html b/ext/action-popup.html similarity index 100% rename from ext/context.html rename to ext/action-popup.html diff --git a/ext/fg/js/popup.js b/ext/fg/js/popup.js index b920caf7..75b74257 100644 --- a/ext/fg/js/popup.js +++ b/ext/fg/js/popup.js @@ -256,7 +256,7 @@ class Popup extends EventDispatcher { frame.removeAttribute('srcdoc'); this._observeFullscreen(true); this._onFullscreenChanged(); - const url = chrome.runtime.getURL('/float.html'); + const url = chrome.runtime.getURL('/popup.html'); if (useSecurePopupFrameUrl) { frame.contentDocument.location.href = url; } else { diff --git a/ext/manifest.json b/ext/manifest.json index 233df081..c8178143 100644 --- a/ext/manifest.json +++ b/ext/manifest.json @@ -24,7 +24,7 @@ "128": "images/icon128.png" }, "default_title": "Yomichan", - "default_popup": "context.html" + "default_popup": "action-popup.html" }, "background": { "page": "background.html", @@ -110,7 +110,7 @@ } }, "web_accessible_resources": [ - "float.html", + "popup.html", "template-renderer.html" ], "content_security_policy": "default-src 'self'; style-src 'self' 'unsafe-inline'; media-src *; connect-src *" diff --git a/ext/float.html b/ext/popup.html similarity index 100% rename from ext/float.html rename to ext/popup.html