Skip to content

Commit

Permalink
Fix for gatekeeper.start()
Browse files Browse the repository at this point in the history
  • Loading branch information
macterra committed Dec 13, 2024
1 parent e81f71c commit 8df3e07
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions packages/gatekeeper/src/gatekeeper-sdk.js
Original file line number Diff line number Diff line change
@@ -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) {
Expand All @@ -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) {
Expand Down

0 comments on commit 8df3e07

Please sign in to comment.