1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

Working on images in Edge

This commit is contained in:
Hillel Coren 2017-05-24 12:14:05 +03:00
parent 945f00dce1
commit 2899125f61

View File

@ -2,8 +2,7 @@
var isOpera = !!window.opera || navigator.userAgent.indexOf(' OPR/') >= 0; var isOpera = !!window.opera || navigator.userAgent.indexOf(' OPR/') >= 0;
var isFirefox = typeof InstallTrigger !== 'undefined'; // Firefox 1.0+ var isFirefox = typeof InstallTrigger !== 'undefined'; // Firefox 1.0+
var isSafari = Object.prototype.toString.call(window.HTMLElement).indexOf('Constructor') > 0; var isSafari = Object.prototype.toString.call(window.HTMLElement).indexOf('Constructor') > 0;
//var isEdge = navigator.userAgent.indexOf('Edge/') >= 0; var isEdge = navigator.userAgent.indexOf('Edge/') >= 0;
var isEdge = false;
var isChrome = !!window.chrome && !isOpera && !isEdge; // Chrome 1+ var isChrome = !!window.chrome && !isOpera && !isEdge; // Chrome 1+
var isChromium = isChrome && navigator.userAgent.indexOf('Chromium') >= 0; var isChromium = isChrome && navigator.userAgent.indexOf('Chromium') >= 0;
// https://code.google.com/p/chromium/issues/detail?id=574648 // https://code.google.com/p/chromium/issues/detail?id=574648