fix plugin early exit
This commit is contained in:
parent
ae127a8d51
commit
82d6b66386
1 changed files with 1 additions and 3 deletions
|
|
@ -37,9 +37,7 @@ export const piniaPushNotificationsPlugin = ({ store }) => {
|
|||
if (store.$id === 'interface') {
|
||||
if (actionName === 'setNotificationPermission') {
|
||||
permissionGranted = args[0] === 'granted'
|
||||
} else if (actionName === 'setLoginStatus') {
|
||||
user = args[0]
|
||||
} else {
|
||||
} else if (actionName !== 'onLogin' && actionName !== 'onLogout') {
|
||||
return
|
||||
}
|
||||
} else if (store.$id === 'sync_config') {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue