Skip to content

Commit

Permalink
Prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
terehov committed Aug 7, 2023
1 parent f083278 commit 6886660
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/index.browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ export { BrowserRuntime };
export class Logger<LogObj> extends BaseLogger<LogObj> {
constructor(settings?: ISettingsParam<LogObj>, logObj?: LogObj) {
const isBrowser = ![typeof window, typeof document].includes("undefined");
const isBrowserBlinkEngine = isBrowser ? ((window?.["chrome"] || (window.Intl && ((Intl as unknown as { v8BreakIterator: unknown })?.v8BreakIterator))) && "CSS" in window) != null : false;
const isBrowserBlinkEngine = isBrowser
? ((window?.["chrome"] || (window.Intl && (Intl as unknown as { v8BreakIterator: unknown })?.v8BreakIterator)) && "CSS" in window) != null
: false;
const isSafari = isBrowser ? /^((?!chrome|android).)*safari/i.test(navigator.userAgent) : false;

settings = settings || {};
Expand Down

0 comments on commit 6886660

Please sign in to comment.