web: Rename RuffleEmbed.is_interdictable to RuffleEmbed.isInterdictable
This commit is contained in:
parent
868548ddc6
commit
f1b05716dd
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue