Removed the hash after import to prevent the same character from being imported again upon refresh.

This commit is contained in:
ModMapper
2024-10-22 20:47:27 +09:00
parent e0edf74b46
commit 95f3bfdd4b

View File

@@ -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, {