mirror of
https://github.com/giongto35/cloud-game.git
synced 2026-07-25 02:57:24 +00:00
Fix event params shadowing (0, false and so on -> {})
This commit is contained in:
parent
7f2f10518a
commit
9238e57acb
2 changed files with 3 additions and 3 deletions
4
web/game.html
vendored
4
web/game.html
vendored
|
|
@ -31,7 +31,7 @@
|
|||
</div>
|
||||
|
||||
<div id="bottom-screen">
|
||||
<!--NOTE: New browser doesn't allow unmuted video player. So we muted here.
|
||||
<!--NOTE: New browser doesn't allow unmuted video player. So we muted here.
|
||||
There is still audio because current audio flow is not from media but it is manually encoded (technical webRTC challenge). Later, when we can integrate audio to media, we can face the issue with mute again .
|
||||
https://developers.google.com/web/updates/2017/09/autoplay-policy-changes
|
||||
-->
|
||||
|
|
@ -90,7 +90,7 @@
|
|||
|
||||
<script src="/static/js/log.js?v=3"></script>
|
||||
<script src="/static/js/env.js?v=3"></script>
|
||||
<script src="/static/js/event/event.js?v=3"></script>
|
||||
<script src="/static/js/event/event.js?v=4"></script>
|
||||
<script src="/static/js/input/keys.js?v=3"></script>
|
||||
<script src="/static/js/input/input.js?v=3"></script>
|
||||
<script src="/static/js/gameList.js?v=3"></script>
|
||||
|
|
|
|||
2
web/js/event/event.js
vendored
2
web/js/event/event.js
vendored
|
|
@ -48,7 +48,7 @@ const event = (() => {
|
|||
if (!topics[topic] || topics[topic].length < 1) return;
|
||||
|
||||
topics[topic].forEach((listener) => {
|
||||
listener.listener(data || {})
|
||||
listener.listener(data !== undefined ? data : {})
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue