Skip to content

Commit

Permalink
executed "npm run lint-fix" to fix ESLint fails
Browse files Browse the repository at this point in the history
  • Loading branch information
DawinYurtseven committed Oct 19, 2023
1 parent 0d3b23a commit 464d165
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions web/ts/course-import.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ function onBeforeUnloadHandle(e) {
// lecture hall selected -> api call
export function addNotifyEventListeners() {
window.addEventListener("notify1", () => {

// warn users when leaving site using the given function:
window.addEventListener("beforeunload", onBeforeUnloadHandle);

Expand All @@ -32,7 +31,7 @@ export function addNotifyEventListeners() {
(res) => {
res.text().then((text) => {
console.log(text);
window.dispatchEvent(new CustomEvent("loading-end", {detail: {courses: JSON.parse(text)}}));
window.dispatchEvent(new CustomEvent("loading-end", { detail: { courses: JSON.parse(text) } }));
});
},
);
Expand All @@ -44,8 +43,8 @@ export function addNotifyEventListeners() {

fetch(`/api/course-schedule/${d.year}/${d.semester}`, {
method: "POST",
body: JSON.stringify({courses: d.courses, optIn: d.optInOut === "Opt In"}),
}).then((r) => window.dispatchEvent(new CustomEvent("imported", {detail: r.status})));
body: JSON.stringify({ courses: d.courses, optIn: d.optInOut === "Opt In" }),
}).then((r) => window.dispatchEvent(new CustomEvent("imported", { detail: r.status })));
});

window.addEventListener("notify3", () => {
Expand Down

0 comments on commit 464d165

Please sign in to comment.