Skip to content

Commit cde8718

Browse files
committed
chore: remove legacy browsers handling
1 parent 6bf137e commit cde8718

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

web/src/shared.ts

+1-7
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,7 @@ const isFormLink = (url: string) => {
3737
return regex.test(url);
3838
};
3939

40-
const isPDFLink = (url: string) => {
41-
try {
42-
return url.endsWith('.pdf');
43-
} catch {
44-
return false;
45-
}
46-
};
40+
const isPDFLink = (url: string) => url.endsWith('.pdf');
4741

4842
const getLocale = (): Locale => {
4943
const languageCode = (() => {

0 commit comments

Comments
 (0)