Skip to content

Commit

Permalink
Fix bug with clicking button on archive.org URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
jstrieb committed Jan 9, 2023
1 parent ff2d4b0 commit f7c1203
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion background.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ function handleActionClicked(tab, onClickData) {
// the story URL
//
// TODO: Match exact path?
return (url.host === hit_url.host
return ((url.host === hit_url.host || url.host === "web.archive.org")
&& ((url.pathname === "/" && hit_url.pathname === "/")
|| (url.pathname !== "/" && hit_url.pathname !== "/")));
});
Expand Down

0 comments on commit f7c1203

Please sign in to comment.