Removed the hash after import to prevent the same character from being imported again upon refresh.
This commit is contained in:
@@ -300,6 +300,7 @@ export async function characterURLImport() {
|
|||||||
|
|
||||||
const hash = location.hash
|
const hash = location.hash
|
||||||
if(hash.startsWith('#import=')){
|
if(hash.startsWith('#import=')){
|
||||||
|
location.hash = ''
|
||||||
const url = hash.replace('#import=', '')
|
const url = hash.replace('#import=', '')
|
||||||
try {
|
try {
|
||||||
const res = await fetch(url, {
|
const res = await fetch(url, {
|
||||||
|
|||||||
Reference in New Issue
Block a user