From 0b6a650aaeda077f5ca52b71076da5e43ef16b0e Mon Sep 17 00:00:00 2001 From: Drathek <76988376+Drulikar@users.noreply.github.com> Date: Sun, 1 Oct 2023 20:57:46 -0700 Subject: [PATCH] Apply suggestions from code review Co-authored-by: harryob --- html/statbrowser.js | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/html/statbrowser.js b/html/statbrowser.js index be6288c9abde..fc9af6bf34c8 100644 --- a/html/statbrowser.js +++ b/html/statbrowser.js @@ -1036,21 +1036,21 @@ Byond.subscribeTo("remove_mc", remove_mc); Byond.subscribeTo("add_verb_list", add_verb_list); function createOptionsButton() { - var B = document.createElement("BUTTON"); - B.onclick = function () { - open_options_menu(); + var button = document.createElement("BUTTON"); + button.onclick = function () { + openOptionsMenu(); this.blur(); }; - B.id = "options"; - B.textContent = "Options"; - B.className = "options"; - B.style.order = 999; // last please - B.style.marginLeft = "auto"; - B.style.marginRight = "2%"; + button.id = "options"; + button.textContent = "Options"; + button.className = "options"; + button.style.order = 999; // last please + button.style.marginLeft = "auto"; + button.style.marginRight = "2%"; menu.appendChild(B); } -function open_options_menu() { +function openOptionsMenu() { Byond.command("Open-Statbrowser-Options " + current_fontsize); }