mirror of
https://github.com/openseadragon/openseadragon.git
synced 2025-02-20 16:53:14 +03:00
Fix for IE 11 Browser Detection
Proposed temporary fix until we don't need browser sniffing anymore.
This commit is contained in:
parent
7ae0452546
commit
8589ebef0d
@ -2080,7 +2080,8 @@ window.OpenSeadragon = window.OpenSeadragon || function( options ){
|
||||
//version and supporting feature sets.
|
||||
var app = navigator.appName,
|
||||
ver = navigator.appVersion,
|
||||
ua = navigator.userAgent;
|
||||
ua = navigator.userAgent,
|
||||
regex;
|
||||
|
||||
//console.error( 'appName: ' + navigator.appName );
|
||||
//console.error( 'appVersion: ' + navigator.appVersion );
|
||||
@ -2116,6 +2117,12 @@ window.OpenSeadragon = window.OpenSeadragon || function( options ){
|
||||
ua.indexOf( "Safari" )
|
||||
)
|
||||
);
|
||||
} else {
|
||||
regex = new RegExp( "Trident/.*rv:([0-9]{1,}[.0-9]{0,}) ");
|
||||
if ( regex.exec( ua ) !== null ) {
|
||||
$.Browser.vendor = $.BROWSERS.IE;
|
||||
$.Browser.version = parseFloat( RegExp.$1 );
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user