Skip to content

Commit

Permalink
Use relative endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
ondryaso authored Nov 2, 2024
1 parent 2682045 commit 48a8344
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions frontend/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ var file = {
var year = (new Date()).getMonth() + 1 >= 8 ? (new Date()).getFullYear() : (new Date()).getFullYear() - 1; // Academic year (from august display next ac. year)
var fakeHtml = document.implementation.createHTMLDocument('virtual'); // https://stackoverflow.com/a/50194774/7361496

const dataUrl = "/data";
const subjectUrl = "/subjectData";
const dataUrl = "data";
const subjectUrl = "subjectData";

///////////////////////////////////// Main /////////////////////////////////////
$(document).ready(async function () {
Expand Down Expand Up @@ -1412,4 +1412,4 @@ function getSemesterWeekFromDate(date) {
console.warn("Date " + date + " is not in any semester week, so will be ignored");
return -1;
}
} // checked
} // checked

0 comments on commit 48a8344

Please sign in to comment.