diff --git a/src/App.vue b/src/App.vue index 68dbbeeea19..5c15fcb6dff 100644 --- a/src/App.vue +++ b/src/App.vue @@ -42,6 +42,7 @@ import debounce from 'debounce' import PreventUnload from 'vue-prevent-unload' import { getCurrentUser } from '@nextcloud/auth' +import { setGlobalToastOptions } from '@nextcloud/dialogs' import { emit, subscribe, unsubscribe } from '@nextcloud/event-bus' import { generateUrl } from '@nextcloud/router' @@ -255,6 +256,8 @@ export default { this.onResize() + setGlobalToastOptions({ selector: this.$store.getters.getMainContainerSelector().slice(1) }) + window.addEventListener('unload', () => { console.info('Navigating away, leaving conversation') if (this.token) {