diff --git a/docs/plugins.md b/docs/plugins.md
index 74c58700a..a3cd0cf07 100644
--- a/docs/plugins.md
+++ b/docs/plugins.md
@@ -683,5 +683,5 @@ def pre_render(**kwargs) :
**template**
```html
-
{{ pre_render }}
+{{ pre_render }}
```
diff --git a/src/common/core/antibot/ui/template.html b/src/common/core/antibot/ui/template.html
index 59a2f835d..bb9aba233 100644
--- a/src/common/core/antibot/ui/template.html
+++ b/src/common/core/antibot/ui/template.html
@@ -21,7 +21,7 @@
{% endif %}
diff --git a/src/common/core/badbehavior/ui/template.html b/src/common/core/badbehavior/ui/template.html
index bfcca47b1..a85140a46 100644
--- a/src/common/core/badbehavior/ui/template.html
+++ b/src/common/core/badbehavior/ui/template.html
@@ -21,7 +21,7 @@
{% endif %}
diff --git a/src/common/core/blacklist/ui/template.html b/src/common/core/blacklist/ui/template.html
index 60b06b2d0..6f3031f07 100644
--- a/src/common/core/blacklist/ui/template.html
+++ b/src/common/core/blacklist/ui/template.html
@@ -21,7 +21,7 @@
{% endif %}
diff --git a/src/common/core/bunkernet/ui/template.html b/src/common/core/bunkernet/ui/template.html
index c0b3209b1..248fe8d36 100644
--- a/src/common/core/bunkernet/ui/template.html
+++ b/src/common/core/bunkernet/ui/template.html
@@ -21,7 +21,7 @@
{% endif %}
diff --git a/src/common/core/cors/ui/template.html b/src/common/core/cors/ui/template.html
index 60b06b2d0..6f3031f07 100644
--- a/src/common/core/cors/ui/template.html
+++ b/src/common/core/cors/ui/template.html
@@ -21,7 +21,7 @@
{% endif %}
diff --git a/src/common/core/country/ui/template.html b/src/common/core/country/ui/template.html
index 60b06b2d0..6f3031f07 100644
--- a/src/common/core/country/ui/template.html
+++ b/src/common/core/country/ui/template.html
@@ -21,7 +21,7 @@
{% endif %}
diff --git a/src/common/core/dnsbl/ui/template.html b/src/common/core/dnsbl/ui/template.html
index 60b06b2d0..6f3031f07 100644
--- a/src/common/core/dnsbl/ui/template.html
+++ b/src/common/core/dnsbl/ui/template.html
@@ -21,7 +21,7 @@
{% endif %}
diff --git a/src/common/core/errors/ui/template.html b/src/common/core/errors/ui/template.html
index 32eecfc83..46fe0a15b 100644
--- a/src/common/core/errors/ui/template.html
+++ b/src/common/core/errors/ui/template.html
@@ -20,7 +20,7 @@
{% endif %}
diff --git a/src/common/core/greylist/ui/template.html b/src/common/core/greylist/ui/template.html
index 60b06b2d0..6f3031f07 100644
--- a/src/common/core/greylist/ui/template.html
+++ b/src/common/core/greylist/ui/template.html
@@ -21,7 +21,7 @@
{% endif %}
diff --git a/src/common/core/limit/ui/template.html b/src/common/core/limit/ui/template.html
index 60b06b2d0..6f3031f07 100644
--- a/src/common/core/limit/ui/template.html
+++ b/src/common/core/limit/ui/template.html
@@ -21,7 +21,7 @@
{% endif %}
diff --git a/src/common/core/misc/ui/template.html b/src/common/core/misc/ui/template.html
index 60b06b2d0..6f3031f07 100644
--- a/src/common/core/misc/ui/template.html
+++ b/src/common/core/misc/ui/template.html
@@ -21,7 +21,7 @@
{% endif %}
diff --git a/src/common/core/redis/ui/template.html b/src/common/core/redis/ui/template.html
index c0b3209b1..248fe8d36 100644
--- a/src/common/core/redis/ui/template.html
+++ b/src/common/core/redis/ui/template.html
@@ -21,7 +21,7 @@
{% endif %}
diff --git a/src/common/core/reversescan/ui/template.html b/src/common/core/reversescan/ui/template.html
index 60b06b2d0..6f3031f07 100644
--- a/src/common/core/reversescan/ui/template.html
+++ b/src/common/core/reversescan/ui/template.html
@@ -21,7 +21,7 @@
{% endif %}
diff --git a/src/common/core/whitelist/ui/template.html b/src/common/core/whitelist/ui/template.html
index 60b06b2d0..6f3031f07 100644
--- a/src/common/core/whitelist/ui/template.html
+++ b/src/common/core/whitelist/ui/template.html
@@ -21,7 +21,7 @@
{% endif %}
diff --git a/src/ui/static/js/plugins/utils.js b/src/ui/static/js/plugins/utils.js
index 5683fbb35..43a994c31 100644
--- a/src/ui/static/js/plugins/utils.js
+++ b/src/ui/static/js/plugins/utils.js
@@ -13,28 +13,27 @@ class Ping {
}
init() {
- this.createAlertEl();
- this.updateAlert("fetch");
+ this.createAlertEl();
+ this.updateAlert("fetch");
- // Case no status element
- if (!this.statusColorEl || !this.statusTextEl)
- return this.updateAlert("error");
+ // Case no status element
+ if (!this.statusColorEl || !this.statusTextEl)
+ return this.updateAlert("error");
- fetch(this.url, {
- method: "POST",
- headers: {
- "X-CSRFToken": document.querySelector('input[name="csrf_token"]')
- .value,
- },
+ fetch(this.url, {
+ method: "POST",
+ headers: {
+ "X-CSRFToken": document.querySelector('input[name="csrf_token"]').value,
+ },
+ })
+ .then((res) => res.json())
+ .then((res) => {
+ // Update data
+ this.updateEl(res.data);
})
- .then((res) => res.json())
- .then((res) => {
- // Update data
- this.updateEl(res.data);
- })
- .catch((error) => {
- this.updateAlert("error");
- });
+ .catch((error) => {
+ this.updateAlert("error");
+ });
}
createAlertEl() {