Skip to content

Commit 11e5bca

Browse files
Detect is404 even if logged out (#99)
1 parent 530e4fb commit 11e5bca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ collect.set('__urls_that_dont_match__', [
1111
'https://github.com/sindresorhus/refined-github/issues/templates/edit',
1212
]);
1313

14-
export const is404 = (): boolean => document.title === 'Page not found · GitHub';
14+
export const is404 = (): boolean => document.title.startsWith('Page not found · GitHub'); // #98
1515

1616
export const is500 = (): boolean => document.title === 'Server Error · GitHub' || document.title === 'Unicorn! · GitHub' || document.title === '504 Gateway Time-out';
1717

0 commit comments

Comments
 (0)