1
0
mirror of https://github.com/psychopy/psychojs.git synced 2025-05-10 10:40:54 +00:00
This commit is contained in:
Alain Pitiot 2020-05-12 18:34:05 +02:00
commit 092829f325

View File

@ -162,6 +162,10 @@ export function detectBrowser()
const isEdgeChromium = isChrome && (navigator.userAgent.indexOf("Edg") !== -1);
if (isEdgeChromium) return 'EdgeChromium';
// Blink engine detection
const isBlink = (isChrome || isOpera) && !!window.CSS;
if (isBlink) return 'Blink';
return 'unknown';
}