Skip to content

Commit

Permalink
fix(todo2): remove alert when downloading a backup (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
tatomyr committed Mar 26, 2024
1 parent 8e0f2a3 commit 04a3aa3
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .debts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
19
20
2 changes: 1 addition & 1 deletion src/examples/purity-todo/manifest.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "Purity Todo 2.15",
"name": "Purity Todo 2.16",
"short_name": "ToDo",
"description": "Todo list written with purity.js",
"icons": [
Expand Down
5 changes: 3 additions & 2 deletions src/examples/purity-todo/purity-todo.sw.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
const appScope = self.registration.scope

const cacheName = `${appScope}@2.15`
const cacheName = `${appScope}@2.16`
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 04a3aa3

Please sign in to comment.