mirror of
https://github.com/BewlyBewly/BewlyBewly.git
synced 2025-04-14 13:15:29 +00:00
15 lines
361 B
TypeScript
15 lines
361 B
TypeScript
const forbiddenProtocols = [
|
|
'chrome-extension://',
|
|
'chrome-search://',
|
|
'chrome://',
|
|
'devtools://',
|
|
'edge://',
|
|
'https://chrome.google.com/webstore',
|
|
]
|
|
|
|
export function isForbiddenUrl(url: string): boolean {
|
|
return forbiddenProtocols.some(protocol => url.startsWith(protocol))
|
|
}
|
|
|
|
// export const isFirefox = navigator.userAgent.includes('Firefox')
|