Made GET parameter case insensitive

This commit is contained in:
Marc Ole Bulling 2019-10-15 08:22:21 +02:00 committed by GitHub
parent bc0035ebc2
commit a70df0d0fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();
}