mirror of
https://github.com/solcloud/Counter-Strike.git
synced 2025-02-22 02:42:51 +01:00
Tuning
This commit is contained in:
parent
3373db6685
commit
87b2ae0619
@ -80,10 +80,7 @@ let launchGame
|
||||
setting.addUpdateCallback('sensitivity', (newValue) => pointerLock.pointerSpeed = parseFloat(newValue))
|
||||
setting.addUpdateCallback('volume', (newValue) => world.volume = parseFloat(newValue))
|
||||
connector.connect(url.hostname, url.port, loginCode, control)
|
||||
|
||||
if (window.nodeApi) {
|
||||
window.addEventListener('beforeunload', () => connector.close());
|
||||
}
|
||||
window.addEventListener('beforeunload', () => connector.close());
|
||||
}
|
||||
|
||||
function render() {
|
||||
|
@ -109,14 +109,15 @@
|
||||
<script>
|
||||
if (window.nodeApi) {
|
||||
document.getElementById('join-url').value = 'udp://localhost:8080?map=default&code=acode'
|
||||
} else {
|
||||
window.addEventListener('beforeunload', (e) => {
|
||||
e.preventDefault();
|
||||
return "Are you sure to leave this page?"
|
||||
});
|
||||
}
|
||||
if (window.location.search === '?dev-join') {
|
||||
joinGameUrl(document.getElementById('join-url').value)
|
||||
}
|
||||
window.addEventListener('beforeunload', (e) => {
|
||||
e.preventDefault();
|
||||
return "Are you sure to leave this page?"
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
Loading…
x
Reference in New Issue
Block a user