Skip to content

Commit

Permalink
Fix for: extesy#881
Browse files Browse the repository at this point in the history
  • Loading branch information
GrosPoulet committed Feb 20, 2022
1 parent ae40d5b commit 633a76b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions js/hoverzoom.js
Original file line number Diff line number Diff line change
Expand Up @@ -1346,6 +1346,9 @@ var hoverZoom = {

if (options.addToHistory && !chrome.extension.inIncognitoContext) {
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});
}
}

Expand Down

0 comments on commit 633a76b

Please sign in to comment.