From 2d0b5a2867180f80d5b0802bf73b884051876e1f Mon Sep 17 00:00:00 2001 From: Aevann Date: Wed, 23 Aug 2023 03:31:20 +0300 Subject: [PATCH] syntax consistency --- files/assets/js/core.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/assets/js/core.js b/files/assets/js/core.js index 8cebda0c12..b5ffabb867 100644 --- a/files/assets/js/core.js +++ b/files/assets/js/core.js @@ -77,7 +77,7 @@ function postToastSwitch(t, url, button1, button2, cls, extraActionsOnSuccess) { (xhr) => { if (button1) { - if (typeof(button1) == 'boolean') { + if (typeof button1 == 'boolean') { location.reload() } else { try {