Skip to content

Commit

Permalink
Fixed context menu issue
Browse files Browse the repository at this point in the history
  • Loading branch information
colbster937 committed May 18, 2024
1 parent bf80f05 commit aa0905c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
</div>
<a class="play-btn" onclick="playGame()">PLAY</a>
<div class="dev-info">
<span>WebMC Launcher v1.0 by Colbster937</span>
<span>WebMC Launcher v1.1 by Colbster937</span>
</div>
</div>
</div>
Expand Down
1 change: 1 addition & 0 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ window.addEventListener('load', function() {
document.body.removeChild(loader);
});
});
document.addEventListener('contextmenu', event => event.preventDefault());
window.gameFrame = document.querySelector('.game-frame');
function changeVersion(version) {
var friendlyVersion = version.replace('latest', 'Latest Release (1.8.8)').replace('classic', 'Classic').replace('ms-Classic', 'Classic (Microsoft Recreation)').replace('beta-1.3', 'Beta 1.3').replace('alpha-1.2.6', 'Alpha 1.2.6').replace('dragonx-client', 'DragonX Client');
Expand Down

0 comments on commit aa0905c

Please sign in to comment.