Skip to content

Commit

Permalink
fix(todo2): remove alert when downloading a backup
Browse files Browse the repository at this point in the history
  • Loading branch information
tatomyr committed Mar 26, 2024
1 parent 8e0f2a3 commit 00d5761
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .debts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
19
20
3 changes: 2 additions & 1 deletion src/examples/purity-todo/purity-todo.sw.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@ const cacheName = `${appScope}@2.15`
const contentToCache = [
"./",
"./index.html",

// FIXME: wrong caching?
"./assets/images/todo-icon-48.png",
"./assets/images/todo-icon-192.png",
"./assets/images/todo-icon-512.png",
"./assets/images/preloader.gif",
"./assets/images/icon-pack/idea.svg",
"./assets/images/icon-pack/forbidden.svg",
"manifest.json",
]

self.addEventListener("install", e => {
Expand Down
1 change: 0 additions & 1 deletion src/examples/purity-todo/services/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ export const downloadUserData = async (): Promise<void> => {
.toISOString()
.replaceAll(/[:.]/g, "_")}.backup.json`
download(fileName, JSON.stringify(groomTasks(state.tasks)))
window.alert("Downloading your backup file")
closeSettings()
} catch (err) {
handleError(err)
Expand Down

0 comments on commit 00d5761

Please sign in to comment.