mirror of
https://github.com/grocy/grocy.git
synced 2026-04-05 20:36: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
|
/* If the GET parameter "closeAfterCreation" was passed to the form, it will
|
||||||
automatically close after creating the product. This only works if the window
|
automatically close after creating the product. This only works if the window
|
||||||
was opened with javascript */
|
was opened with javascript */
|
||||||
if (window.location.href.includes("closeAfterCreation"))
|
if (window.location.href.toLowerCase().includes("closeaftercreation"))
|
||||||
{
|
{
|
||||||
window.close();
|
window.close();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user