summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2014-02-13 20:21:34 +0100
committerAndreas Gohr <andi@splitbrain.org>2014-02-13 20:23:38 +0100
commit0931b30cccfd534a64df4da966e67e0175948849 (patch)
tree73ee8c7ca870a9c563e2b4fc5e3b4209d07d5be1
parent350eada6c66014c2bfb20902742120b7568ec576 (diff)
downloadrpg-0931b30cccfd534a64df4da966e67e0175948849.tar.gz
rpg-0931b30cccfd534a64df4da966e67e0175948849.tar.bz2
adjusted IE detection for smblinks
MSIE 11 tries hard to break any previous working browser detection even through feature checks. This resolves to browser sniffing (MSIE for old IE, Trident for IE11+) See https://forum.dokuwiki.org/thread/10824
-rw-r--r--lib/scripts/behaviour.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/scripts/behaviour.js b/lib/scripts/behaviour.js
index 85ddf503e..6b46add07 100644
--- a/lib/scripts/behaviour.js
+++ b/lib/scripts/behaviour.js
@@ -109,7 +109,7 @@ var dw_behaviour = {
* @author Michael Klier <chi@chimeric.de>
*/
checkWindowsShares: function() {
- if(!LANG.nosmblinks || typeof(document.all) !== 'undefined') {
+ if(!LANG.nosmblinks || navigator.userAgent.match(/(Trident|MSIE)/)) {
// No warning requested or none necessary
return;
}