summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/App.vue3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/App.vue b/src/App.vue
index 68dbbeeea..5c15fcb6d 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) {