Skip to content

Commit f7c1203

Browse files
committed
Fix bug with clicking button on archive.org URLs
1 parent ff2d4b0 commit f7c1203

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

background.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ function handleActionClicked(tab, onClickData) {
140140
// the story URL
141141
//
142142
// TODO: Match exact path?
143-
return (url.host === hit_url.host
143+
return ((url.host === hit_url.host || url.host === "web.archive.org")
144144
&& ((url.pathname === "/" && hit_url.pathname === "/")
145145
|| (url.pathname !== "/" && hit_url.pathname !== "/")));
146146
});

0 commit comments

Comments
 (0)