disable search on Nextcloud 20
This commit is contained in:
parent
d4a493278f
commit
c42ec2765e
|
@ -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()
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue