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