summaryrefslogtreecommitdiff
path: root/ext/bg/js/search-frontend.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/bg/js/search-frontend.js')
-rw-r--r--ext/bg/js/search-frontend.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/bg/js/search-frontend.js b/ext/bg/js/search-frontend.js
index e21dc371..fdf7219c 100644
--- a/ext/bg/js/search-frontend.js
+++ b/ext/bg/js/search-frontend.js
@@ -41,6 +41,9 @@ async function searchFrontendSetup() {
'/fg/js/frontend-initialize.js'
];
for (const src of scriptSrcs) {
+ const node = document.querySelector(`script[src='${src}']`);
+ if (node !== null) { continue; }
+
const script = document.createElement('script');
script.async = false;
script.src = src;