This commit is contained in:
syuilo 2020-02-06 22:25:45 +09:00
parent 9994e969a0
commit 2709670341

View file

@ -36,19 +36,6 @@ export default Vue.extend({
mixins: [
paging({
onPrepend: (self, note) => {
//
if (document.hidden) {
if ('Notification' in window && Notification.permission === 'granted') {
new Notification(getUserName(note.user), {
body: getNoteSummary(note),
icon: note.user.avatarUrl,
tag: 'newNote'
});
}
}
},
before: (self) => {
self.$emit('before');
},