Revert "js: Don't bypass our cache when reloading CSS"

This reverts commit 1c7e5b31bf.

fixes #4417
refs #4340
This commit is contained in:
Johannes Meyer 2021-07-02 14:46:22 +02:00
parent decf8c0588
commit 54acf35c69
1 changed files with 4 additions and 1 deletions

View File

@ -112,7 +112,10 @@
if ($oldLink.hasAttr('type') && $oldLink.attr('type').indexOf('css') > -1) { if ($oldLink.hasAttr('type') && $oldLink.attr('type').indexOf('css') > -1) {
var $newLink = $oldLink.clone().attr( var $newLink = $oldLink.clone().attr(
'href', 'href',
$(this).attr('href') icinga.utils.addUrlParams(
$oldLink.attr('href'),
{ id: new Date().getTime() } // Only required for Firefox to reload CSS automatically
)
).on('load', function() { ).on('load', function() {
$oldLink.remove(); $oldLink.remove();
}); });