Skip to content

Commit

Permalink
Merge pull request #16 from Stoppedwumm:config
Browse files Browse the repository at this point in the history
Make config better
  • Loading branch information
Stoppedwumm authored Oct 7, 2024
2 parents dd8da7a + bde901a commit 3758ea0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ const config = {
enableArch: false,
}

if (!config.enableArch) {
document.getElementById("archB").remove()
}

console.log("Executed")
document.getElementById("archB").onclick = () => {
console.log("Arch")
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ <h1>Start latest Version</h1>
<p>This version runs an cached version of the game</p>
<p>Update your launcher regulary to get the latest version</p>
<button class="start" onclick="window.electronAPI.start()">Start</button><br>
<button class="start" onclick="window.electronAPI.devbuild()">Dev/Indev Version</button>
<button class="start" onclick="window.electronAPI.devbuild()">Dev/Indev Version</button><br>
<button class="arch" id="archB">Join arch.lol</button>
<h2>About Eaglercraft</h2>
<p>Developed by a high school student because original Minecraft isn't free</p>
Expand Down

0 comments on commit 3758ea0

Please sign in to comment.