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>
|
||||
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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue