moved notification asking from page load to login event. Added image in
notifications support (doesn't work for native KDE notifications for me tho)
This commit is contained in:
parent
3dc375f442
commit
4cf580ee31
2 changed files with 15 additions and 4 deletions
|
@ -102,6 +102,10 @@ const users = {
|
|||
store.commit('addNewUsers', mutedUsers)
|
||||
})
|
||||
|
||||
if ('Notification' in window && window.Notification.permission === 'default') {
|
||||
window.Notification.requestPermission()
|
||||
}
|
||||
|
||||
// Fetch our friends
|
||||
store.rootState.api.backendInteractor.fetchFriends()
|
||||
.then((friends) => commit('addNewUsers', friends))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue