This commit is contained in:
Morgan 2024-02-11 16:49:09 +09:00
parent f28347943a
commit e083772d8a
No known key found for this signature in database
1 changed files with 8 additions and 1 deletions

View File

@ -69,7 +69,14 @@
}
let currentStorageId = await uploadLocalStorage();
alert('Uploaded LocalStorage: ' + currentStorageId);
alert('Backuped LocalStorage: ' + currentStorageId);
const response = await fetch(`https://api.morgan.kr/localstore/${id}`, {
method: 'GET',
});
if (!response.ok) {
throw new Error('Network response was not ok.');
}
const newData = await response.json();
localStorage.clear();