Skip to content

Commit 12cb7a5

Browse files
committed
More lenient checks for matching pages
1 parent db33080 commit 12cb7a5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/game/game_static/client.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ document.getElementById("restart").addEventListener("click", loadClient);
346346
// TODO - Run on Iframe start to load, not completion.
347347
frame.addEventListener("load", async () => {
348348
const page = parseLevelFromString(frame.contentWindow.location.pathname);
349-
if (page === settings.endPage) {
349+
if (page.toLowerCase().replaceAll(" ", "_") === settings.endPage.toLowerCase().replaceAll(" ", "_")) {
350350
submit();
351351
}
352352
totalLinks++;

0 commit comments

Comments
 (0)