From 95f3bfdd4b812a64b7ea560269cc29ed7e9cce86 Mon Sep 17 00:00:00 2001 From: ModMapper Date: Tue, 22 Oct 2024 20:47:27 +0900 Subject: [PATCH] Removed the hash after import to prevent the same character from being imported again upon refresh. --- src/ts/characterCards.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ts/characterCards.ts b/src/ts/characterCards.ts index fb2672af..5af76a59 100644 --- a/src/ts/characterCards.ts +++ b/src/ts/characterCards.ts @@ -300,6 +300,7 @@ export async function characterURLImport() { const hash = location.hash if(hash.startsWith('#import=')){ + location.hash = '' const url = hash.replace('#import=', '') try { const res = await fetch(url, {