From: Jaroslav Kysela Date: Mon, 24 Apr 2017 16:19:11 +0000 (+0200) Subject: webui: use IE/Edge specific routine to clear authentication cache X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aec09b66904951d553de5549c0ca0ef327e0644f;p=thirdparty%2Ftvheadend.git webui: use IE/Edge specific routine to clear authentication cache --- diff --git a/src/webui/static/app/tvheadend.js b/src/webui/static/app/tvheadend.js index 73e4510a2..fdfc6010e 100644 --- a/src/webui/static/app/tvheadend.js +++ b/src/webui/static/app/tvheadend.js @@ -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'; }