Skip to content

Commit c42ec27

Browse files
committed
disable search on Nextcloud 20
1 parent d4a4932 commit c42ec27

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/App.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,9 @@ export default {
128128
129129
created() {
130130
store.commit('setDocumentTitle', document.title)
131-
this.search = new OCA.Search(this.onSearch, this.onResetSearch)
131+
if (typeof OCA.Search === 'function') {
132+
this.search = new OCA.Search(this.onSearch, this.onResetSearch)
133+
}
132134
window.addEventListener('beforeunload', this.onClose)
133135
this.loadNotes()
134136
},

0 commit comments

Comments
 (0)