mirror of
https://github.com/grocy/grocy.git
synced 2026-04-05 12:26:15 +02:00
Made GET parameter case insensitive
This commit is contained in:
parent
bc0035ebc2
commit
a70df0d0fe
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user