There was an error while loading. Please reload this page.
1 parent 1891ab3 commit 8141aecCopy full SHA for 8141aec
1 file changed
index.ts
@@ -57,7 +57,7 @@ TEST: addTests('__urls_that_dont_match__', [
57
'https://github.com/orgs/community/discussions/new/choose',
58
]);
59
60
-export const is404 = (): boolean => /^(Page|File) not found · GitHub/.test(document.title); // #98; When logged out, it starts with "File"
+export const is404 = (): boolean => /^(Page|File) not found(?: · GitHub|$)/.test(document.title);
61
62
export const is500 = (): boolean => document.title === 'Server Error · GitHub' || document.title === 'Unicorn! · GitHub' || document.title === '504 Gateway Time-out';
63
0 commit comments