disable search on Nextcloud 20

This commit is contained in:
korelstar 2020-08-25 20:33:09 +02:00
parent d4a493278f
commit c42ec2765e
1 changed files with 3 additions and 1 deletions

View File

@ -128,7 +128,9 @@ export default {
created() {
store.commit('setDocumentTitle', document.title)
this.search = new OCA.Search(this.onSearch, this.onResetSearch)
if (typeof OCA.Search === 'function') {
this.search = new OCA.Search(this.onSearch, this.onResetSearch)
}
window.addEventListener('beforeunload', this.onClose)
this.loadNotes()
},