mirror of
https://github.com/classilla/tenfourfox.git
synced 2024-07-11 06:29:02 +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");
|
||
|
}
|