web: Rename install_plugin to installPlugin

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

View File

@ -184,7 +184,7 @@ FLASH_PLUGIN.install({
* that version of the plugin array. This allows the plugin polyfill to compose * that version of the plugin array. This allows the plugin polyfill to compose
* across multiple plugin emulators with the first emulator's polyfill winning. * across multiple plugin emulators with the first emulator's polyfill winning.
*/ */
export function install_plugin(plugin: RufflePlugin): void { export function installPlugin(plugin: RufflePlugin): void {
if (!("install" in navigator.plugins) || !navigator.plugins["install"]) { if (!("install" in navigator.plugins) || !navigator.plugins["install"]) {
Object.defineProperty(navigator, "plugins", { Object.defineProperty(navigator, "plugins", {
value: new RufflePluginArray(navigator.plugins), value: new RufflePluginArray(navigator.plugins),

View File

@ -1,6 +1,6 @@
import { RuffleObject } from "./ruffle-object"; import { RuffleObject } from "./ruffle-object";
import { RuffleEmbed } from "./ruffle-embed"; import { RuffleEmbed } from "./ruffle-embed";
import { install_plugin, FLASH_PLUGIN } from "./plugin-polyfill"; import { installPlugin, FLASH_PLUGIN } from "./plugin-polyfill";
import { publicPath } from "./public-path"; import { publicPath } from "./public-path";
import { Config } from "./config"; import { Config } from "./config";
@ -193,7 +193,7 @@ function polyfillDynamicFrames(): void {
* Polyfills the detection of flash plugins in the browser. * Polyfills the detection of flash plugins in the browser.
*/ */
export function pluginPolyfill(): void { export function pluginPolyfill(): void {
install_plugin(FLASH_PLUGIN); installPlugin(FLASH_PLUGIN);
} }
/** /**