diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2020-04-19 14:21:43 -0400 |
---|---|---|
committer | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2020-04-19 14:26:20 -0400 |
commit | 6c93d1984fbfe4fc21df4d0675fb4a82f2991ea3 (patch) | |
tree | 3d4419b0e666e99b922a788d55bcb5d98c59ce09 | |
parent | a6344f635de2464465317b2ceeb6e19aef056848 (diff) |
Change frontend-initialize.js to content-script-main.js
-rw-r--r-- | ext/bg/js/search-frontend.js | 2 | ||||
-rw-r--r-- | ext/fg/js/content-script-main.js (renamed from ext/fg/js/frontend-initialize.js) | 4 | ||||
-rw-r--r-- | ext/fg/js/popup-nested.js | 2 | ||||
-rw-r--r-- | ext/manifest.json | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/ext/bg/js/search-frontend.js b/ext/bg/js/search-frontend.js index e534e771..bda46a98 100644 --- a/ext/bg/js/search-frontend.js +++ b/ext/bg/js/search-frontend.js @@ -27,7 +27,7 @@ function injectSearchFrontend() { '/fg/js/popup.js', '/fg/js/popup-proxy-host.js', '/fg/js/frontend.js', - '/fg/js/frontend-initialize.js' + '/fg/js/content-script-main.js' ]; for (const src of scriptSrcs) { const node = document.querySelector(`script[src='${src}']`); diff --git a/ext/fg/js/frontend-initialize.js b/ext/fg/js/content-script-main.js index 2df59e20..974320cc 100644 --- a/ext/fg/js/frontend-initialize.js +++ b/ext/fg/js/content-script-main.js @@ -61,7 +61,7 @@ async function createPopupProxy(depth, id, parentFrameId, url) { return popup; } -async function main() { +async function contentScriptMain() { await yomichan.prepare(); const data = window.frontendInitializationData || {}; @@ -130,4 +130,4 @@ async function main() { await applyOptions(); } -main(); +contentScriptMain(); diff --git a/ext/fg/js/popup-nested.js b/ext/fg/js/popup-nested.js index c140f9c8..27482931 100644 --- a/ext/fg/js/popup-nested.js +++ b/ext/fg/js/popup-nested.js @@ -26,7 +26,7 @@ function injectPopupNested() { '/fg/js/popup.js', '/fg/js/popup-proxy.js', '/fg/js/frontend.js', - '/fg/js/frontend-initialize.js' + '/fg/js/content-script-main.js' ]; for (const src of scriptSrcs) { const script = document.createElement('script'); diff --git a/ext/manifest.json b/ext/manifest.json index d383dab0..4f35b03c 100644 --- a/ext/manifest.json +++ b/ext/manifest.json @@ -31,7 +31,7 @@ "fg/js/popup-proxy.js", "fg/js/popup-proxy-host.js", "fg/js/frontend.js", - "fg/js/frontend-initialize.js" + "fg/js/content-script-main.js" ], "match_about_blank": true, "all_frames": true |