mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 07:44:04 +02:00
History: Combined cleanup regular expression
This commit is contained in:
parent
c135d3243a
commit
6cc428d0e1
@ -105,8 +105,8 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
push: function (url) {
|
push: function (url) {
|
||||||
url = url.replace(/_render=[a-z0-9]+&/, '').replace(/&_render=[a-z0-9]+/, '').replace(/\?_render=[a-z0-9]+$/, '');
|
url = url.replace(/[\?&]?_(render|reload)=[a-z0-9]+/g, '');
|
||||||
url = url.replace(/_reload=[a-z0-9]+&/, '').replace(/&_reload=[a-z0-9]+/, '').replace(/\?_reload=[a-z0-9]+$/, '');
|
console.log("URL:", url);
|
||||||
if (this.lastPushUrl === url) {
|
if (this.lastPushUrl === url) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user