web: Rename RuffleEmbed.is_interdictable to RuffleEmbed.isInterdictable

This commit is contained in:
Nathan Adams 2020-11-17 20:53:08 +01:00 committed by Mike Welsh
parent 868548ddc6
commit f1b05716dd
2 changed files with 2 additions and 2 deletions

View File

@ -48,7 +48,7 @@ function replace_flash_instances() {
}
}
for (const elem of Array.from(embeds)) {
if (RuffleEmbed.is_interdictable(elem)) {
if (RuffleEmbed.isInterdictable(elem)) {
const ruffle_obj = RuffleEmbed.from_native_embed_element(elem);
elem.replaceWith(ruffle_obj);
}

View File

@ -102,7 +102,7 @@ export class RuffleEmbed extends RufflePlayer {
* @param elem Element to check.
* @return True if the element looks like a flash embed.
*/
static is_interdictable(elem: HTMLElement): boolean {
static isInterdictable(elem: HTMLElement): boolean {
if (!elem.getAttribute("src")) {
return false;
}