summaryrefslogtreecommitdiffstats
path: root/core/src/unified-search.js
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2020-08-03 16:50:39 +0200
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2020-08-04 20:56:22 +0200
commit6eced42b7a40f5b0ea0489244583219d0ee2e7af (patch)
treec7244e50328a27c28579f9812a8cc2808f64e13a /core/src/unified-search.js
parent72b45f9546208c82e76ddb2ad7995f0485d99b18 (diff)
downloadnextcloud-server-6eced42b7a40f5b0ea0489244583219d0ee2e7af.tar.gz
nextcloud-server-6eced42b7a40f5b0ea0489244583219d0ee2e7af.zip
Remove outdated legacy search scripts
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'core/src/unified-search.js')
-rw-r--r--core/src/unified-search.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/core/src/unified-search.js b/core/src/unified-search.js
index ba975d78564..c6d835836bb 100644
--- a/core/src/unified-search.js
+++ b/core/src/unified-search.js
@@ -32,6 +32,18 @@ __webpack_nonce__ = btoa(getRequestToken())
// eslint-disable-next-line camelcase
__webpack_public_path__ = generateFilePath('core', '', 'js/')
+// TODO: remove with nc22
+if (!OCA.Search) {
+ class Search {
+
+ constructor() {
+ console.warn('OCA.Search is deprecated. Please use the unified search API instead')
+ }
+
+ }
+ OCA.Search = Search
+}
+
Vue.mixin({
methods: {
t,