From 8df3e07b5e37141ad3df2389554d617d7565241c Mon Sep 17 00:00:00 2001 From: David McFadzean Date: Fri, 13 Dec 2024 11:25:34 -0500 Subject: [PATCH] Fix for gatekeeper.start() --- packages/gatekeeper/src/gatekeeper-sdk.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/packages/gatekeeper/src/gatekeeper-sdk.js b/packages/gatekeeper/src/gatekeeper-sdk.js index 0140ea66..12e140c5 100644 --- a/packages/gatekeeper/src/gatekeeper-sdk.js +++ b/packages/gatekeeper/src/gatekeeper-sdk.js @@ -1,7 +1,7 @@ import axios from 'axios'; -let URL = ''; -let API = '/api/v1'; +const VERSION = '/api/v1'; +let API = VERSION; function throwError(error) { if (error.response) { @@ -13,8 +13,7 @@ function throwError(error) { export async function start(options = {}) { if (options.url) { - URL = options.url; - API = `${URL}${API}`; + API = `${options.url}${VERSION}`; } if (options.waitUntilReady) {