web: Rename load_ruffle to loadRuffle
This commit is contained in:
parent
8c36e02dc5
commit
6a9d0f64e9
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue