Revert "Workaround crash that can happen in Electron/Chromium"
This reverts commit 2ca0ccbe0c.
This commit is contained in:
@@ -17,7 +17,6 @@ export const isNode = (typeof navigator === 'undefined') ? true : false;
|
||||
const userAgent = (isNode) ? 'node' : navigator.userAgent;
|
||||
const platform = (isNode) ? 'node' : navigator.platform;
|
||||
|
||||
export const isElectron = userAgent.includes('Electron');
|
||||
export const isFirefox = userAgent.includes('Firefox');
|
||||
export const isLegacyEdge = userAgent.includes('Edge');
|
||||
export const isSafari = /^((?!chrome|android).)*safari/i.test(userAgent);
|
||||
|
||||
Reference in New Issue
Block a user