forked from trent_larson/crowd-funder-for-time-pwa
fix problem when notification subscription isn't found
This commit is contained in:
@@ -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
generated
4
package-lock.json
generated
@@ -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",
|
||||||
|
|||||||
@@ -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
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,
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user