Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split big index.js file into multiple smaller files #1761

Merged
merged 4 commits into from
Oct 9, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"];
consideRatio marked this conversation as resolved.
Show resolved Hide resolved
Expand Down
Loading