summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Xu (Hello71) <alex_y_xu@yahoo.ca>2018-09-18 16:21:08 -0400
committerAlex Xu (Hello71) <alex_y_xu@yahoo.ca>2018-09-18 16:21:08 -0400
commit87c3ae27d68cdecb967d91a56146dc7874867a8b (patch)
tree9d56242c784682e05d95eb3fef8b1eef2707258c
parent6d1016e2dfb3d0b10d8e7203dd217382821ab42a (diff)
downloadyorku-course-query-87c3ae27d68cdecb967d91a56146dc7874867a8b.tar.xz
yorku-course-query-87c3ae27d68cdecb967d91a56146dc7874867a8b.zip
use textContent instead of innerHTML to pacify AMO
-rw-r--r--script.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/script.js b/script.js
index 83ed58e..494bfca 100644
--- a/script.js
+++ b/script.js
@@ -148,11 +148,11 @@ document.addEventListener("DOMContentLoaded", function () {
if (state.fac && state.dept && state.crsn && state.cred && state.year && state.sess) {
link.href = `https://w2prod.sis.yorku.ca/Apps/WebObjects/cdm.woa/wa/crsq?fa=${state.fac}&sj=${state.dept}&cn=${state.crsn}&cr=${state.cred}&ay=${state.year}&ss=${state.sess}`;
- link.innerHTML = `York University: ${state.fac}/${state.dept} ${state.crsn} ${state.cred} (${sessions.selectedOptions[0].innerHTML})`;
+ link.textContent = `York University: ${state.fac}/${state.dept} ${state.crsn} ${state.cred} (${sessions.selectedOptions[0].textContent})`;
linkContainer.style = "display: block";
} else if (state.fac && state.dept && state.sess) {
link.href = `https://w2prod.sis.yorku.ca/Apps/WebObjects/cdm.woa/wa/crsq1?faculty=${state.fac}&subject=${state.dept}&academicyear=${state.year}&studysession=${state.sess}`;
- link.innerHTML = `York University: ${state.fac}/${state.dept} Courses (${sessions.selectedOptions[0]. innerHTML})`;
+ link.textContent = `York University: ${state.fac}/${state.dept} Courses (${sessions.selectedOptions[0]. textContent})`;
linkContainer.style = "display: block";
} else {
linkContainer.style = "display: none";