Skip to content

Commit 9cd5d1b

Browse files
committed
ggpht: use location.replace
1 parent e508fcf commit 9cd5d1b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ggpht.com/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ const S = /s\d+-([cp])/;
44
if (!location.href.includes("4096")) {
55
const dest = location.href.replace(S, "s4096-$1");
66
if (dest !== location.href) {
7-
location.href = dest;
7+
location.replace(dest);
88
}
99

1010
const dest2 = location.href.replace(/w\d+-h\d+/, "w4096");
1111
if (dest2 !== location.href) {
12-
location.href = dest2;
12+
location.replace(dest2);
1313
}
1414
}

0 commit comments

Comments
 (0)