Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: harryob <[email protected]>
  • Loading branch information
Drulikar and harryob authored Oct 2, 2023
1 parent 3212971 commit 0b6a650
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions html/statbrowser.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 0b6a650

Please sign in to comment.