From e57ab1835c71fb253e1c91d47d35e41314df8acd Mon Sep 17 00:00:00 2001 From: tomtjes <7606307+tomtjes@users.noreply.github.com> Date: Mon, 5 May 2025 21:26:56 +0200 Subject: [PATCH] fix bookmarklet --- vue3/src/pages/RecipeImportPage.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vue3/src/pages/RecipeImportPage.vue b/vue3/src/pages/RecipeImportPage.vue index b27594d98..95976a075 100644 --- a/vue3/src/pages/RecipeImportPage.vue +++ b/vue3/src/pages/RecipeImportPage.vue @@ -492,7 +492,7 @@ const bookmarkletContent = computed(() => { `localStorage.setItem("importURL", "${getDjangoUrl('/api/bookmarklet-import/')}");` + `localStorage.setItem("redirectURL", "${getDjangoUrl('/recipe/import/')}");` + `localStorage.setItem("token", "${bookmarkletToken.value}");` + - `document.body.appendChild(document.createElement("script")).src="${bookmarkletJs}?r="+Math.floor(Math.random()*999999999)}` + + `document.body.appendChild(document.createElement("script")).src="${bookmarkletJs}"}` + `})()` }) @@ -835,4 +835,4 @@ function loadOrCreateBookmarkletToken() { \ No newline at end of file +