web: Rename load_ruffle to loadRuffle

This commit is contained in:
Nathan Adams 2020-11-17 23:17:38 +01:00 committed by Mike Welsh
parent 8c36e02dc5
commit 6a9d0f64e9
2 changed files with 3 additions and 3 deletions

View File

@ -39,7 +39,7 @@ let lastLoaded: Promise<{ new (...args: any[]): Ruffle }> | null = null;
*
* This function returns a promise which yields `Ruffle` asynchronously.
*/
export function load_ruffle(): Promise<{ new (...args: any[]): Ruffle }> {
export function loadRuffle(): Promise<{ new (...args: any[]): Ruffle }> {
if (lastLoaded == null) {
lastLoaded = fetchRuffle();
}

View File

@ -1,6 +1,6 @@
import { Ruffle } from "../pkg/ruffle_web";
import { load_ruffle } from "./load-ruffle";
import { loadRuffle } from "./load-ruffle";
import { ruffleShadowTemplate } from "./shadow-template";
import { lookupElement } from "./register-element";
@ -123,7 +123,7 @@ export class RufflePlayer extends HTMLElement {
this.allowScriptAccess = false;
this._trace_observer = null;
this.ruffleConstructor = load_ruffle();
this.ruffleConstructor = loadRuffle();
return this;
}