Skip to content

Commit

Permalink
House Keeping
Browse files Browse the repository at this point in the history
  • Loading branch information
TheManWhoLikesToCode committed Jan 12, 2024
1 parent 87b2187 commit 11d8421
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 5 additions & 0 deletions frontend/static/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ function getEnv() {
}

function getApiUrl() {

if (!config.apiUrl[getEnv()]) {
throw new Error('Api url not found.');
}

return config.apiUrl[getEnv()]
}

Expand Down
2 changes: 0 additions & 2 deletions frontend/static/scripts.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { getApiUrl } from "./helpers";

$(function () {
// init feather icons
feather.replace();
Expand Down

0 comments on commit 11d8421

Please sign in to comment.