mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-22 21:26:10 +03:00
Merge pull request #385 from msalsbery/IE-Browser-Detection
Fix for IE 11 Browser Detection
This commit is contained in:
commit
f0c92146d1
@ -2101,7 +2101,8 @@ window.OpenSeadragon = window.OpenSeadragon || function( options ){
|
|||||||
//version and supporting feature sets.
|
//version and supporting feature sets.
|
||||||
var app = navigator.appName,
|
var app = navigator.appName,
|
||||||
ver = navigator.appVersion,
|
ver = navigator.appVersion,
|
||||||
ua = navigator.userAgent;
|
ua = navigator.userAgent,
|
||||||
|
regex;
|
||||||
|
|
||||||
//console.error( 'appName: ' + navigator.appName );
|
//console.error( 'appName: ' + navigator.appName );
|
||||||
//console.error( 'appVersion: ' + navigator.appVersion );
|
//console.error( 'appVersion: ' + navigator.appVersion );
|
||||||
@ -2137,6 +2138,12 @@ window.OpenSeadragon = window.OpenSeadragon || function( options ){
|
|||||||
ua.indexOf( "Safari" )
|
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;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user