handle both cases

This commit is contained in:
Faris Ansari 2017-08-29 14:02:49 +05:30 committed by GitHub
parent 97c1bcf14f
commit 6f50b3a5b2

View File

@ -73,7 +73,7 @@ frappe.ready(function() {
} }
} }
if (window.location.search == ("?variant=" + item_code)) { if (window.location.search == ("?variant=" + item_code) || window.location.search.includes(item_code)) {
return; return;
} }