diff options
author | Vincent Petry <vincent@nextcloud.com> | 2021-04-28 17:28:01 +0200 |
---|---|---|
committer | Vincent Petry <vincent@nextcloud.com> | 2021-04-28 17:28:01 +0200 |
commit | a2741f30f1b13b35879306dea910cdc5374d2fd1 (patch) | |
tree | b6e2febd2213ce70fcc58ec0ecf16dac137d7ddc /src/mainPublicShareSidebar.js | |
parent | f4484df4c3a536247dab39c1ad97e03ecfb486ea (diff) |
Register visibility observer in all entry points
The observe-visibility extension was missing in many entry points
resulting in repeated console warnings.
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Diffstat (limited to 'src/mainPublicShareSidebar.js')
-rw-r--r-- | src/mainPublicShareSidebar.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mainPublicShareSidebar.js b/src/mainPublicShareSidebar.js index d1593203b..a47184a55 100644 --- a/src/mainPublicShareSidebar.js +++ b/src/mainPublicShareSidebar.js @@ -19,6 +19,7 @@ */ import Vue from 'vue' +import VueObserveVisibility from 'vue-observe-visibility' import PublicShareSidebar from './PublicShareSidebar' import './init' @@ -57,6 +58,7 @@ Vue.prototype.OCA = OCA Vue.use(Vuex) Vue.use(VueShortKey, { prevent: ['input', 'textarea', 'div'] }) Vue.use(vOutsideEvents) +Vue.use(VueObserveVisibility) function adjustLayout() { document.querySelector('#app-content').appendChild(document.querySelector('footer')) |