]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
webui: use IE/Edge specific routine to clear authentication cache
authorJaroslav Kysela <perex@perex.cz>
Mon, 24 Apr 2017 16:19:11 +0000 (18:19 +0200)
committerJaroslav Kysela <perex@perex.cz>
Mon, 24 Apr 2017 16:19:11 +0000 (18:19 +0200)
src/webui/static/app/tvheadend.js

index 73e4510a2af4733463909c935a28a31f14f23521..fdfc6010e0c442041019fb14da19df79da1825b4 100644 (file)
@@ -998,6 +998,13 @@ tvheadend.RootTabPanel = Ext.extend(Ext.TabPanel, {
     },
 
     onLoginCmdClicked: function(e) {
+        if (this.login && (document.all || window.navigator.userAgent.indexOf("Edge") > -1 ||
+                           (!!window.MSInputMethodContext && !!document.documentMode))) {
+            document.execCommand("ClearAuthenticationCache");
+            window.location.href = '';
+            return;
+        }
+        XMLHttpRequest.prototype.send = function(){};
         window.location.href = this.login ? 'logout' : 'login';
     }