From 91430e159c82d185721f424c001e36ab800df4f2 Mon Sep 17 00:00:00 2001 From: Henrik Askjer <henrik.askjer@uib.no> Date: Wed, 29 Sep 2021 10:39:11 +0200 Subject: [PATCH] Disable old search function --- src/components/DictionaryView.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/DictionaryView.vue b/src/components/DictionaryView.vue index 901ea4fe..c04a476c 100644 --- a/src/components/DictionaryView.vue +++ b/src/components/DictionaryView.vue @@ -124,6 +124,7 @@ function navigate_to_article(self, source) { }) } +/* function navigate_to_search(self, query) { axios.get(self.api_pref + 'search?q=' + query, { headers: {"x-api-key":"ZkYiyRVXxH86ijsvhx3cH4SY5Iik2ijI3BKVJGMm"}}) // API-key to be removed or reimplemented with a ci-variable with the new API .then(function(response){ @@ -149,6 +150,7 @@ function navigate_to_search(self, query) { history.replaceState({article: self.article, search_results: self.search_results, lang: self.lang, error: self.error}, '') }) } +*/ function navigate_to_word(self, word) { -- GitLab