File tree 3 files changed +4
-3
lines changed
3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ export const resolvePageFileContent = async ({
19
19
const content = await fs . readFile ( filePath , 'utf-8' )
20
20
return content
21
21
} catch ( e ) {
22
- log ( e . message )
22
+ log ( e instanceof Error ? e . message : e )
23
23
}
24
24
}
25
25
Original file line number Diff line number Diff line change @@ -36,13 +36,13 @@ export const createHookQueue = <T extends HooksName>(name: T): HookQueue<T> => {
36
36
if ( result !== undefined ) {
37
37
results . push ( result )
38
38
}
39
- } catch ( error ) {
39
+ } catch ( e ) {
40
40
logger . error (
41
41
`error in hook ${ chalk . magenta ( name ) } from ${ chalk . magenta (
42
42
item . pluginName
43
43
) } `
44
44
)
45
- throw error
45
+ throw e
46
46
}
47
47
}
48
48
Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ export const PwaPopup = defineComponent({
41
41
show . value = false
42
42
if ( registration . value ) {
43
43
useSkipWaiting ( registration . value )
44
+ // @ts -expect-error: Firefox supports a non-standard forceGet boolean parameter for location.reload()
44
45
location . reload ( true )
45
46
}
46
47
}
You can’t perform that action at this time.
0 commit comments