const fixes

This commit is contained in:
sageTheDM 2024-10-09 13:50:44 +02:00
parent 9ee165c5c5
commit b951fa4d4f

View file

@ -40,10 +40,10 @@ export function importSettings(jsonData: string): void {
} }
export const sendToDatabase = async () => { export const sendToDatabase = async () => {
let useName = localStorage.getItem("accountName") const useName = localStorage.getItem("accountName")
let usePassword = localStorage.getItem("accountPassword") const usePassword = localStorage.getItem("accountPassword")
if (useName && usePassword) { if (useName && usePassword) {
let result = await changeSettings(useName, usePassword, JSON.parse(exportSettings())) const result = await changeSettings(useName, usePassword, JSON.parse(exportSettings()))
if (result == true) { if (result == true) {
alert('Data has been transferred') alert('Data has been transferred')
window.location.reload(); window.location.reload();