Update js/modules/loki_app_dot_net_api.js

Co-Authored-By: Mikunj Varsani <Mikunj@users.noreply.github.com>
pull/1061/head^2
Ryan Tharp 6 years ago committed by GitHub
parent 078e95f8c9
commit 9e584b64aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -262,7 +262,7 @@ const serverRequest = async (endpoint, options = {}) => {
) { ) {
mode = 'sendToProxy'; mode = 'sendToProxy';
// url.search automatically includes the ? part // url.search automatically includes the ? part
const search = url.search ? `${url.search}` : ''; const search = url.search || '';
// strip first slash // strip first slash
const endpointWithQS = `${url.pathname}${search}`.replace(/^\//, ''); const endpointWithQS = `${url.pathname}${search}`.replace(/^\//, '');
({ response, txtResponse, result } = await sendToProxy( ({ response, txtResponse, result } = await sendToProxy(

Loading…
Cancel
Save