mirror of
https://github.com/primedigitaltech/azon_seeker.git
synced 2026-01-25 00:13:17 +08:00
17 lines
440 B
TypeScript
17 lines
440 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');
|
|
|
|
export const remoteHost = __DEV__ ? '127.0.0.1:8000' : '47.251.4.191:8000';
|