changeset 719:5e91a740aff8

Added a Browser Switch as a function is not available in IE9 and lower
author Dustin Demuth <dustin@intevation.de>
date Wed, 15 Apr 2015 16:20:44 +0200
parents 7f11b75e0188
children c2a6f7caa71b
files app.js
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/app.js	Wed Apr 15 12:13:57 2015 +0200
+++ b/app.js	Wed Apr 15 16:20:44 2015 +0200
@@ -103,8 +103,12 @@
     },
 
     onLoginSuccess: function(response) {
-        /* Strip out the openid query params to look nicers. */
-        window.history.pushState(this.name, this.name, window.location.pathname);
+
+        if (!Ext.isIE9m) {
+          /* Strip out the openid query params to look nicers. */
+          // Not supported in old IE's
+          window.history.pushState(this.name, this.name, window.location.pathname);
+        }
 
         Ext.create('Lada.view.Viewport');
 

http://lada.wald.intevation.org