Skip to content

Commit

Permalink
Merge pull request #883 from GrosPoulet/master
Browse files Browse the repository at this point in the history
Improvement to #881
  • Loading branch information
GrosPoulet authored Feb 20, 2022
2 parents 1c5984e + 625dcc8 commit 6f9dc19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/hoverzoom.js
Original file line number Diff line number Diff line change
Expand Up @@ -1348,7 +1348,7 @@ var hoverZoom = {
chrome.runtime.sendMessage({action:'addUrlToHistory', url:imgDetails.url});
// #881: add link url to history if available, this is needed to turn hovered links purple
let linkUrl = hz.currentLink.prop('href');
if (linkUrl != imgDetails.url) chrome.runtime.sendMessage({action:'addUrlToHistory', url:linkUrl});
if (linkUrl && linkUrl != imgDetails.url) chrome.runtime.sendMessage({action:'addUrlToHistory', url:linkUrl});
}
}

Expand Down

0 comments on commit 6f9dc19

Please sign in to comment.