diff options
author | Alex Xu (Hello71) <alex_y_xu@yahoo.ca> | 2018-09-18 16:21:08 -0400 |
---|---|---|
committer | Alex Xu (Hello71) <alex_y_xu@yahoo.ca> | 2018-09-18 16:21:08 -0400 |
commit | 87c3ae27d68cdecb967d91a56146dc7874867a8b (patch) | |
tree | 9d56242c784682e05d95eb3fef8b1eef2707258c | |
parent | 6d1016e2dfb3d0b10d8e7203dd217382821ab42a (diff) | |
download | yorku-course-query-87c3ae27d68cdecb967d91a56146dc7874867a8b.tar.xz yorku-course-query-87c3ae27d68cdecb967d91a56146dc7874867a8b.zip |
use textContent instead of innerHTML to pacify AMO
-rw-r--r-- | script.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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"; |