Skip to content

Commit

Permalink
web: Ensure exposed callbacks are on the <ruffle-player>
Browse files Browse the repository at this point in the history
  • Loading branch information
Dinnerbone authored and Herschel committed Sep 4, 2020
1 parent 91cb597 commit 4de2b7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/packages/core/src/ruffle-player.js
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ exports.RufflePlayer = class RufflePlayer extends HTMLElement {
*/
on_callback_available(name) {
const instance = this.instance;
this.container[name] = (...args) => {
this[name] = (...args) => {
return instance.call_exposed_callback(name, args);
};
}
Expand Down

0 comments on commit 4de2b7f

Please sign in to comment.