diff --git a/web/packages/core/src/polyfills.ts b/web/packages/core/src/polyfills.ts index 10b5094c2..9b331705e 100644 --- a/web/packages/core/src/polyfills.ts +++ b/web/packages/core/src/polyfills.ts @@ -1,17 +1,17 @@ import { RuffleObject } from "./ruffle-object"; import { RuffleEmbed } from "./ruffle-embed"; import { install_plugin, FLASH_PLUGIN } from "./plugin-polyfill"; -import { public_path } from "./public-path"; +import { publicPath } from "./public-path"; import { Config } from "./config"; if (!window.RufflePlayer) { window.RufflePlayer = {}; } let topLevelRuffleConfig: Config; -let ruffleScriptSrc = public_path({}, "ruffle.js"); +let ruffleScriptSrc = publicPath({}, "ruffle.js"); if (window.RufflePlayer.config) { topLevelRuffleConfig = window.RufflePlayer.config; - ruffleScriptSrc = public_path(window.RufflePlayer.config, "ruffle.js"); + ruffleScriptSrc = publicPath(window.RufflePlayer.config, "ruffle.js"); } /* public_path returns the directory where the file is, * * so we need to append the filename. We don't need to * diff --git a/web/packages/core/src/public-path.ts b/web/packages/core/src/public-path.ts index 431681130..1365d84f4 100644 --- a/web/packages/core/src/public-path.ts +++ b/web/packages/core/src/public-path.ts @@ -20,7 +20,7 @@ import { Config } from "./config"; * @param source_name The name of the source. * @returns The public path for the given source. */ -export function public_path(config: Config, source_name: string): string { +export function publicPath(config: Config, source_name: string): string { let path = ""; if ( config !== undefined && diff --git a/web/packages/selfhosted/js/ruffle.js b/web/packages/selfhosted/js/ruffle.js index 6af405322..2562ff042 100644 --- a/web/packages/selfhosted/js/ruffle.js +++ b/web/packages/selfhosted/js/ruffle.js @@ -1,8 +1,8 @@ -const { PublicAPI, SourceAPI, public_path } = require("ruffle-core"); +const { PublicAPI, SourceAPI, publicPath } = require("ruffle-core"); window.RufflePlayer = PublicAPI.negotiate( window.RufflePlayer, "local", new SourceAPI("local") ); -__webpack_public_path__ = public_path(window.RufflePlayer.config, "local"); +__webpack_public_path__ = publicPath(window.RufflePlayer.config, "local");