Skip to content

Commit

Permalink
Remove redundant 'loadConfig'
Browse files Browse the repository at this point in the history
  • Loading branch information
yuvipanda committed Oct 9, 2023
1 parent 5a3197c commit c4af6be
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions binderhub/static/js/src/repo.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,5 @@
import { BASE_URL } from "./constants";

let configDict = {};

export function loadConfig(callback) {
const req = new XMLHttpRequest();
req.onreadystatechange = function() {
if (req.readyState == 4 && req.status == 200)
callback(req.responseText)
};
req.open('GET', BASE_URL + "_config", true);
req.send(null);
}


function setLabels() {
const provider = $("#provider_prefix").val();
const text = configDict[provider]["text"];
Expand Down

0 comments on commit c4af6be

Please sign in to comment.