Skip to content

Commit

Permalink
HTML worker fix (emscripten-core#5296)
Browse files Browse the repository at this point in the history
  • Loading branch information
buu700 committed Jun 15, 2017
1 parent d1fea7c commit d28fb24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions emcc.py
Original file line number Diff line number Diff line change
Expand Up @@ -2361,10 +2361,10 @@ def generate_html(target, options, js_target, target_basename,
// note: no support for code mods (PRECISE_F32==2)
console.log('running code on the main thread');
var script = document.createElement('script');
script.src = "%s.js";
script.src = "%s";
document.body.appendChild(script);
}
''' % proxy_worker_filename
''' % shared.JS.get_subresource_location(proxy_worker_filename + '.js')
else:
# Normal code generation path
script.src = base_js_target
Expand Down

0 comments on commit d28fb24

Please sign in to comment.