add _t param for force refresh

This commit is contained in:
Silron88 2015-08-19 02:24:55 +03:00
parent 8d44e2bc2b
commit ef7017c783

View File

@ -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);