diff options
Diffstat (limited to 'src/stores/AppStore.ts')
-rw-r--r-- | src/stores/AppStore.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/stores/AppStore.ts b/src/stores/AppStore.ts index 18b38799e..82591a2a4 100644 --- a/src/stores/AppStore.ts +++ b/src/stores/AppStore.ts | |||
@@ -212,7 +212,7 @@ export default class AppStore extends TypedStore { | |||
212 | } | 212 | } |
213 | 213 | ||
214 | if (data.error) { | 214 | if (data.error) { |
215 | if (data.error.message && data.error.message.startsWith('404')) { | 215 | if (data.error.message?.startsWith('404')) { |
216 | this.updateStatus = this.updateStatusTypes.NOT_AVAILABLE; | 216 | this.updateStatus = this.updateStatusTypes.NOT_AVAILABLE; |
217 | console.warn( | 217 | console.warn( |
218 | 'Updater warning: there seems to be unpublished pre-release(s) available on GitHub', | 218 | 'Updater warning: there seems to be unpublished pre-release(s) available on GitHub', |
@@ -350,7 +350,7 @@ export default class AppStore extends TypedStore { | |||
350 | if (this.stores.settings.all.app.isAppMuted) return; | 350 | if (this.stores.settings.all.app.isAppMuted) return; |
351 | 351 | ||
352 | // TODO: is there a simple way to use blobs for notifications without storing them on disk? | 352 | // TODO: is there a simple way to use blobs for notifications without storing them on disk? |
353 | if (options.icon && options.icon.startsWith('blob:')) { | 353 | if (options.icon?.startsWith('blob:')) { |
354 | delete options.icon; | 354 | delete options.icon; |
355 | } | 355 | } |
356 | 356 | ||