Add update scoreboard and challenge board functions to window global (#1957)

* Closes #1841
* Adds update scoreboard and challenge board functions to window global
* This is a stop gap measure before we start using CTFd.js more heavily
This commit is contained in:
Kevin Chung
2021-07-23 15:33:38 -04:00
committed by GitHub
parent bff71c6169
commit fd2846a93d
6 changed files with 8 additions and 4 deletions

View File

@@ -428,3 +428,5 @@ const loadHint = id => {
displayUnlock(id);
});
};
window.updateChallengeBoard = update;

View File

@@ -175,3 +175,5 @@ $(() => {
setInterval(update, 300000); // Update scores every 5 minutes
createGraph();
});
window.updateScoreboard = update;

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long