Skip to content

Commit

Permalink
Prioritise title
Browse files Browse the repository at this point in the history
  • Loading branch information
jelmervdl committed Aug 4, 2023
1 parent b9f1f78 commit 178a091
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/content/InPageTranslation.js
Original file line number Diff line number Diff line change
Expand Up @@ -873,7 +873,7 @@ export default class InPageTranslation {
let priority = 2;
if (!isElementVisible(node))
priority = 3;
else if (isElementInViewport(node))
else if (isElementInViewport(node) || node instanceof HTMLTitleElement)
priority = 1;

// Record it?
Expand Down

0 comments on commit 178a091

Please sign in to comment.