web: Rename RufflePlayer.ensure_fresh_instance to

RufflePlayer.ensureFreshInstance
This commit is contained in:
Nathan Adams 2020-11-15 01:42:16 +01:00 committed by Mike Welsh
parent 4540b73d68
commit f692ee36a5
1 changed files with 3 additions and 3 deletions

View File

@ -249,7 +249,7 @@ export class RufflePlayer extends HTMLElement {
*
* @private
*/
private async ensure_fresh_instance(): Promise<void> {
private async ensureFreshInstance(): Promise<void> {
if (this.instance) {
this.instance.destroy();
this.instance = null;
@ -318,7 +318,7 @@ export class RufflePlayer extends HTMLElement {
if (this.isConnected && !this.isUnusedFallbackObject()) {
console.log("Loading SWF file " + url);
await this.ensure_fresh_instance();
await this.ensureFreshInstance();
parameters = {
...sanitize_parameters(url.substring(url.indexOf("?"))),
...sanitize_parameters(parameters),
@ -503,7 +503,7 @@ export class RufflePlayer extends HTMLElement {
if (this.isConnected && !this.isUnusedFallbackObject()) {
console.log("Got SWF data");
await this.ensure_fresh_instance();
await this.ensureFreshInstance();
this.instance?.load_data(
new Uint8Array(data),
sanitize_parameters(parameters)