From aec09b66904951d553de5549c0ca0ef327e0644f Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Mon, 24 Apr 2017 18:19:11 +0200 Subject: [PATCH] webui: use IE/Edge specific routine to clear authentication cache --- src/webui/static/app/tvheadend.js | 7 +++++++ 1 file changed, 7 insertions(+) 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'; } -- 2.47.2