Skip to content

Commit a70bbf1

Browse files
committed
ditch getBrowser
1 parent fb98af2 commit a70bbf1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/ts/ltl-translation.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { AvailableLanguageCodes, IframeTranslatorClient } from 'iframe-translator';
2-
import { Browser, getBrowser, isLiveTL } from './chat-constants';
2+
import { isLiveTL } from './chat-constants';
33

44
const REQUEST_TYPE = 'hc-ltl-translate-request';
55
const RESPONSE_TYPE = 'hc-ltl-translate-response';
@@ -26,7 +26,7 @@ const isObject = (value: unknown): value is Record<string, unknown> => {
2626

2727
export const shouldUseLiveTLTranslatorBridge = (): boolean => {
2828
return isLiveTL &&
29-
getBrowser() === Browser.FIREFOX &&
29+
navigator.userAgent.includes('Firefox') &&
3030
window.parent !== window;
3131
};
3232

0 commit comments

Comments
 (0)