Skip to content

Commit

Permalink
v1.8.10 - Fix some navigation issues
Browse files Browse the repository at this point in the history
Closes #44
  • Loading branch information
mgziminsky committed Oct 4, 2020
1 parent 969990b commit d8836bd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
v1.8.10
- Fix some navigation issues with internal link cleaning enabled - closes #44

v1.8.9
- Block additional background tracking and metrics submission
- Fix video volume adjustment slider - closes #43
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "__MSG_extensionName__",
"version": "1.8.9",
"version": "1.8.10",
"description": "__MSG_extensionDescription__",
"default_locale": "en",
"icons": { "128": "src/icon.png" },
Expand Down
3 changes: 1 addition & 2 deletions src/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ function isAllowedTarget(e) {
// Walk through event target and parents until the currentTarget looking for an element that clicks are allowed on
while (e.currentTarget.parentNode !== checkTarget) {
const role = checkTarget.attributes.role;
if (checkTarget.tagName === "A" && (!checkTarget.hasAttribute("href") || checkTarget.getAttribute("href") === "#")) {
e.preventDefault();
if (checkTarget.tagName === "A" && checkTarget.hostname === location.hostname) {
return true;
} else if (role && config.roles.includes(role.value.toUpperCase())) {
return true;
Expand Down

0 comments on commit d8836bd

Please sign in to comment.