Skip to content

Commit

Permalink
sokol_app.h html5: remove misleading comment
Browse files Browse the repository at this point in the history
  • Loading branch information
floooh committed Nov 23, 2024
1 parent 33ff86d commit 2e324c8
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions sokol_app.h
Original file line number Diff line number Diff line change
Expand Up @@ -5095,8 +5095,6 @@ EM_JS(void, sapp_js_remove_dragndrop_listeners, (void), {

EM_JS(void, sapp_js_init, (const char* c_str_target_selector), {
const target_selector_str = UTF8ToString(c_str_target_selector);
// Special way to lookup the canvas by setting Module['canvas'] outside
// the WASM, this may be useful when the canvas can't be setup via document.querySelector()
if (Module['canvas'] !== undefined) {
if (typeof Module['canvas'] === 'object') {
specialHTMLTargets[target_selector_str] = Module['canvas'];
Expand Down

0 comments on commit 2e324c8

Please sign in to comment.