Skip to content

Commit

Permalink
allow settings in offline mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Concedo authored and Concedo committed Dec 8, 2023
1 parent cd3bcdd commit 2f1704a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3640,7 +3640,7 @@
let elem = document.getElementById("gametext")
let selection = window.getSelection();
let fullySelected = (elem.innerText!="" && selection.toString() === elem.innerText);
if(fullySelected)
if(fullySelected || elem.innerText.trim()=="")
{
document.execCommand('selectAll', false, null);
document.execCommand('insertText', false, "");
Expand Down Expand Up @@ -10240,7 +10240,7 @@
document.getElementById("topbtn_ai").classList.add("hidden");
document.getElementById("topbtn_newgame").classList.remove("hidden");
document.getElementById("topbtn_save_load").classList.remove("hidden");
document.getElementById("topbtn_settings").classList.add("hidden");
document.getElementById("topbtn_settings").classList.remove("hidden");
document.getElementById("topbtn_scenarios").classList.add("hidden");
document.getElementById("topbtn_quickplay").classList.add("hidden");
} else {
Expand Down

0 comments on commit 2f1704a

Please sign in to comment.