web: Rename fetch_ruffle to fetchRuffle

This commit is contained in:
Nathan Adams 2020-11-17 23:17:21 +01:00 committed by Mike Welsh
parent 41bf30efc8
commit 8c36e02dc5
1 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@ import { Ruffle } from "../pkg/ruffle_web";
* You should not use it directly; this module will memoize the resource * You should not use it directly; this module will memoize the resource
* download. * download.
*/ */
async function fetch_ruffle(): Promise<{ new (...args: any[]): Ruffle }> { async function fetchRuffle(): Promise<{ new (...args: any[]): Ruffle }> {
try { try {
//If runtime_path is defined then we are executing inside the extension //If runtime_path is defined then we are executing inside the extension
//closure. In that case, we configure our local Webpack instance //closure. In that case, we configure our local Webpack instance
@ -41,7 +41,7 @@ let lastLoaded: Promise<{ new (...args: any[]): Ruffle }> | null = null;
*/ */
export function load_ruffle(): Promise<{ new (...args: any[]): Ruffle }> { export function load_ruffle(): Promise<{ new (...args: any[]): Ruffle }> {
if (lastLoaded == null) { if (lastLoaded == null) {
lastLoaded = fetch_ruffle(); lastLoaded = fetchRuffle();
} }
return lastLoaded; return lastLoaded;