Skip to content

Commit

Permalink
Got rid of the weird undefined error.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Scholer committed Jan 22, 2019
1 parent 812ebd8 commit 829394e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion content.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@

//Click on the "Purdue Account Login" button
if (window.location.href.startsWith("https://mycourses.purdue.edu/") === true
&& document.getElementsByClassName("purdue-btn-bottom-row")[0] !== null) {
&& document.getElementsByClassName("purdue-btn-bottom-row")[0] !== null
&& document.getElementsByClassName("purdue-btn-bottom-row")[0] !== undefined) {

document.getElementsByClassName("purdue-btn-bottom-row")[0].click();
}

Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "BoilerKey Helper",
"description": "An extension that alleviates Purdue's BoilerKey two-factor authentication.",
"author": "Ben Scholer",
"version": "1.7.2",
"version": "1.7.3",
"icons": {
"16": "icons/icon16.png",
"48": "icons/icon48.png",
Expand Down

0 comments on commit 829394e

Please sign in to comment.