We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43fffee commit 45d9e29Copy full SHA for 45d9e29
packages/messaging/src/index.ts
@@ -105,6 +105,8 @@ function isSupported(): boolean {
105
*/
106
function isWindowControllerSupported(): boolean {
107
return (
108
+ 'indexedDB' in window &&
109
+ indexedDB !== null &&
110
navigator.cookieEnabled &&
111
'serviceWorker' in navigator &&
112
'PushManager' in window &&
@@ -120,6 +122,8 @@ function isWindowControllerSupported(): boolean {
120
122
121
123
function isSWControllerSupported(): boolean {
124
125
+ 'indexedDB' in self &&
126
127
'PushManager' in self &&
128
'Notification' in self &&
129
ServiceWorkerRegistration.prototype.hasOwnProperty('showNotification') &&
0 commit comments