This is an automated email from the git hooks/post-receive script. New commit to branch bow-v2-go in repository bow. See https://gitlab.nuiton.org/chorem/bow.git commit 697eb0d52d0725a9ec9cd026973ebca009fcc3d3 Author: Benjamin <poussin@codelutin.com> Date: Wed May 27 22:34:16 2020 +0200 vu que sur firefox android il ne fait pas d'appel pour le suggest, pas besoin du token dans l'url --- web/src/components/SearchInput.vue | 2 +- web/src/utils/FetchHelper.js | 9 --------- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/web/src/components/SearchInput.vue b/web/src/components/SearchInput.vue index 4b874d5..9208eb5 100644 --- a/web/src/components/SearchInput.vue +++ b/web/src/components/SearchInput.vue @@ -10,7 +10,7 @@ <input type="text" v-model="mFulltext" @keyup.enter="searchFulltext" /> </label> </form> - <form :action="$fetch.createOpensearchUrl()"> + <form :action="$fetch.createUrl('/opensearch')"> <label> web: <input name="action" type="text" /> diff --git a/web/src/utils/FetchHelper.js b/web/src/utils/FetchHelper.js index a7fd61e..824aacd 100644 --- a/web/src/utils/FetchHelper.js +++ b/web/src/utils/FetchHelper.js @@ -1,17 +1,8 @@ -import Vue from 'vue' - let FetchHelper = { createUrl(url) { return window.BACKEND_URL + 'api/v1' + url }, - createOpensearchUrl() { - let token = Vue.$storage.getCookie('bow-token') - let result = this.createUrl(`/opensearch?bow-token=${token}`) - console.log('Opensearch url', result) - return result - }, - async fetch(url, method, headers, body) { headers = headers || {} if (!headers['Content-Type']) { -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.