add logo icon to notification
This commit is contained in:
parent
cf7cdc42a2
commit
6fa42905fe
1 changed files with 3 additions and 1 deletions
|
|
@ -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();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue