mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-01 04:10:06 -05:00
fix bookmarklet
This commit is contained in:
@@ -492,7 +492,7 @@ const bookmarkletContent = computed(() => {
|
|||||||
`localStorage.setItem("importURL", "${getDjangoUrl('/api/bookmarklet-import/')}");` +
|
`localStorage.setItem("importURL", "${getDjangoUrl('/api/bookmarklet-import/')}");` +
|
||||||
`localStorage.setItem("redirectURL", "${getDjangoUrl('/recipe/import/')}");` +
|
`localStorage.setItem("redirectURL", "${getDjangoUrl('/recipe/import/')}");` +
|
||||||
`localStorage.setItem("token", "${bookmarkletToken.value}");` +
|
`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() {
|
|||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user