File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/messaging/src/helpers Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 18
18
import { trustedResourceUrl } from 'safevalues' ;
19
19
import { safeServiceWorkerContainer } from 'safevalues/dom' ;
20
20
21
- import { DEFAULT_SW_PATH , DEFAULT_SW_SCOPE } from '../util/constants' ;
21
+ import { DEFAULT_SW_SCOPE } from '../util/constants' ;
22
22
import { ERROR_FACTORY , ErrorCode } from '../util/errors' ;
23
23
24
24
import { MessagingService } from '../messaging-service' ;
@@ -30,7 +30,7 @@ export async function registerDefaultSw(
30
30
const container = navigator . serviceWorker ;
31
31
messaging . swRegistration = await safeServiceWorkerContainer . register (
32
32
container ,
33
- trustedResourceUrl `${ DEFAULT_SW_PATH } ` ,
33
+ trustedResourceUrl `/firebase-messaging-sw.js ` ,
34
34
{
35
35
scope : DEFAULT_SW_SCOPE
36
36
}
You can’t perform that action at this time.
0 commit comments