Skip to content

Commit

Permalink
Merge pull request #1 from timrolsh/main
Browse files Browse the repository at this point in the history
fix query selector to make extension work again
  • Loading branch information
kna27 authored Apr 1, 2023
2 parents f42dbd2 + 5f19780 commit e25cc9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bca-gpa/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ function classData() {
var data = []

for (var i = 0; i < classes.length; i++) {
var name = classes.item(i).querySelector('td[align="left"]');
var name = classes.item(i).querySelector('td[class="table-element-text-align-start"]');
name = name.textContent;
if (name[0] == '~') continue; //Not included in GPA

Expand Down Expand Up @@ -148,4 +148,4 @@ gpabox.innerHTML = gpasrc;
var contentArea = document.getElementById("content-main");
var box = contentArea.querySelector("h1");
contentArea.insertBefore(box.cloneNode(true), box);
contentArea.replaceChild(gpabox, box);
contentArea.replaceChild(gpabox, box);

0 comments on commit e25cc9c

Please sign in to comment.