From ef7017c783a8cdb194988457dd941565118c84d1 Mon Sep 17 00:00:00 2001 From: Silron88 Date: Wed, 19 Aug 2015 02:24:55 +0300 Subject: [PATCH] add _t param for force refresh --- src/mibew/js/source/chat_popup.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mibew/js/source/chat_popup.js b/src/mibew/js/source/chat_popup.js index 8bdad90f..d439fcce 100644 --- a/src/mibew/js/source/chat_popup.js +++ b/src/mibew/js/source/chat_popup.js @@ -278,7 +278,7 @@ var Mibew = Mibew || {}; return this.url + ((this.url.indexOf('?') === -1) ? '?' : '&') + 'url=' + encodeURIComponent(href) - + '&referrer=' + encodeURIComponent(referrer); + + '&referrer=' + encodeURIComponent(referrer) + "&_t=" + new Date().getTime(); } /** @@ -308,7 +308,7 @@ var Mibew = Mibew || {}; // are loading. this.attachDefaultStyles(); // Load extra style sheets. - Mibew.Utils.loadScript(this.styleLoader); + Mibew.Utils.loadScript(this.styleLoader + "?_t=" + new Date().getTime()); // Check if the popup should be reopened. var openedChatUrl = Mibew.Utils.readCookie('mibew-chat-frame-' + this.id);