Browse Source

fix problem when notification subscription isn't found

master 0.3.35
Trent Larson 2 days ago
parent
commit
bff7d0a632
  1. 2
      CHANGELOG.md
  2. 4
      package-lock.json
  3. 2
      package.json
  4. 14
      src/App.vue

2
CHANGELOG.md

@ -6,7 +6,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [0.3.34] - 2024.11 ## [0.3.35] - 2024.11.24
### Added ### Added
- Daily reliable, hard-coded notification message - Daily reliable, hard-coded notification message
- Setting to change the partner API server - Setting to change the partner API server

4
package-lock.json

@ -1,12 +1,12 @@
{ {
"name": "TimeSafari", "name": "TimeSafari",
"version": "0.3.34", "version": "0.3.35",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "TimeSafari", "name": "TimeSafari",
"version": "0.3.34", "version": "0.3.35",
"dependencies": { "dependencies": {
"@capacitor/android": "^6.1.2", "@capacitor/android": "^6.1.2",
"@capacitor/cli": "^6.1.2", "@capacitor/cli": "^6.1.2",

2
package.json

@ -1,6 +1,6 @@
{ {
"name": "TimeSafari", "name": "TimeSafari",
"version": "0.3.34", "version": "0.3.35",
"scripts": { "scripts": {
"dev": "vite", "dev": "vite",
"serve": "vite preview", "serve": "vite preview",

14
src/App.vue

@ -362,6 +362,20 @@ export default class App extends Vue {
); );
}); });
if (!subscription) {
// there is no endpoint or auth for the server to compare, so we're done
this.$notify(
{
group: "alert",
type: "info",
title: "Finished",
text: "Notifications are off.", // a different message so I know there are none stored
},
5000,
);
return true;
}
const serverSubscription = { const serverSubscription = {
...subscription, ...subscription,
}; };

Loading…
Cancel
Save