web: Rename install_plugin to installPlugin
This commit is contained in:
parent
6a9d0f64e9
commit
f1eabe1594
|
@ -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),
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue