Keep marketplace search on marketplace page
This commit is contained in:
1 parent
b049b79911
commit
c4a802b458
1 file changed
+1
@@ -59,6 +59,7 @@
|
|||||||
|
|
||||||
input.addEventListener("keydown", (event) => {
|
input.addEventListener("keydown", (event) => {
|
||||||
if (event.key !== "Enter") return;
|
if (event.key !== "Enter") return;
|
||||||
|
if (location.pathname.includes("marketplace")) return;
|
||||||
|
|
||||||
const search = input.value.trim();
|
const search = input.value.trim();
|
||||||
location.href = search
|
location.href = search
|
||||||
|
|||||||
Reference in new issue
Block a user