summaryrefslogtreecommitdiff
path: root/client-web/source/helper.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client-web/source/helper.ts')
-rw-r--r--client-web/source/helper.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/client-web/source/helper.ts b/client-web/source/helper.ts
index 51036a1..655d894 100644
--- a/client-web/source/helper.ts
+++ b/client-web/source/helper.ts
@@ -60,7 +60,7 @@ export function image_view(url: string, opts?: Opts<HTMLElement>): HTMLElement {
img.src = url
img.alt = `Image (click to open)`
img.addEventListener("click", () => {
- window.open(url, "_blank", `noreferrer=true,noopener=true,popup=${PREFS.image_view_popup}`)
+ globalThis.open(url, "_blank", `noreferrer=true,noopener=true,popup=${PREFS.image_view_popup}`)
})
return img
}