From a70df0d0fea963203ec4a00a918dee8727cceb3f Mon Sep 17 00:00:00 2001 From: Marc Ole Bulling Date: Tue, 15 Oct 2019 08:22:21 +0200 Subject: [PATCH] Made GET parameter case insensitive --- public/viewjs/productform.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/viewjs/productform.js b/public/viewjs/productform.js index 22c2b23b..071cfe8b 100644 --- a/public/viewjs/productform.js +++ b/public/viewjs/productform.js @@ -70,7 +70,7 @@ /* If the GET parameter "closeAfterCreation" was passed to the form, it will automatically close after creating the product. This only works if the window was opened with javascript */ - if (window.location.href.includes("closeAfterCreation")) + if (window.location.href.toLowerCase().includes("closeaftercreation")) { window.close(); }