add logo icon to notification

This commit is contained in:
10G Meow 2023-06-12 17:42:59 +03:00
parent cf7cdc42a2
commit 6fa42905fe

View file

@ -31,6 +31,7 @@
<script>
import stickers from "./plugins/stickers";
import logoMixin from "./components/logoMixin";
export default {
name: "App",
@ -41,6 +42,7 @@ export default {
availableJsonTranslation: null
}
},
mixins: [logoMixin],
beforeMount() {
this.setDefaultLanguage();
},
@ -117,7 +119,7 @@ export default {
return;
}
const title = this.$t('notification.title');
const notification = new Notification(title);
const notification = new Notification(title, {icon: this.logotype});
notification.onclick = () => {
notification.close();
window.parent.focus();