From e8883a8a6bd92c8b0ec755c63b75f51436b3b01f Mon Sep 17 00:00:00 2001 From: MoskalykA <100430077+MoskalykA@users.noreply.github.com> Date: Fri, 24 Mar 2023 23:15:08 +0100 Subject: [PATCH] refactor(esx_context): slight optimization --- [core]/esx_context/index.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/[core]/esx_context/index.html b/[core]/esx_context/index.html index 67670963..78f14c84 100644 --- a/[core]/esx_context/index.html +++ b/[core]/esx_context/index.html @@ -269,7 +269,7 @@ } if (ele.input) { - if (ele.inputType == "radio") { + if (ele.inputType === "radio") { for (let j = 0; j < ele.inputValues.length; j++) { let v = ele.inputValues[j]; let container = CreateElement("label", "container", div); @@ -390,8 +390,8 @@ }); window.addEventListener("keydown", (e) => { - if (e.key == "Escape" || e.key == "Backspace") { - if (e.target.tagName.toLowerCase() == "input") { + if (e.key === "Escape" || e.key === "Backspace") { + if (e.target.tagName.toLowerCase() === "input") { return; }