mirror of
https://github.com/classilla/tenfourfox.git
synced 2024-07-06 03:29:01 +00:00
19 lines
442 B
JavaScript
19 lines
442 B
JavaScript
function forceLoadPluginElement(id) {
|
|
var e = document.getElementById(id);
|
|
var found = e.pluginFoundElement;
|
|
}
|
|
|
|
function forceLoadPlugin(ids, skipRemoveAttribute) {
|
|
if (Array.isArray(ids)) {
|
|
ids.forEach(function(element, index, array) {
|
|
forceLoadPluginElement(element);
|
|
});
|
|
} else {
|
|
forceLoadPluginElement(ids);
|
|
}
|
|
if (skipRemoveAttribute) {
|
|
return;
|
|
}
|
|
document.documentElement.removeAttribute("class");
|
|
}
|