Skip to content

Commit f12fd54

Browse files
committed
some games have focus issues, autofocus canvas on load
1 parent fd4a86e commit f12fd54

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

static/play/play.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@
5656
content: window.ccPorted.getUserTokens()
5757
});
5858
}
59+
60+
iframe.focus();
5961
});
6062
// Set up secure message handling from iframes
6163
window.addEventListener("message", async (event) => {

0 commit comments

Comments
 (0)