Don't consider scripts using GM_ functions as broken
There are cases where scripts check for the existence of such functions and fall back to standard functions.
This commit is contained in:
parent
728ed8570f
commit
b299608352
1 changed files with 0 additions and 6 deletions
|
@ -1245,12 +1245,6 @@ addons_update_elements (MidoriExtension* extension,
|
|||
if (!addons_get_element_content (fullpath, kind,
|
||||
&(element->script_content)))
|
||||
element->broken = TRUE;
|
||||
if (element->script_content)
|
||||
{
|
||||
gchar* use_gm = g_strrstr_len (element->script_content , -1, "GM_");
|
||||
if (use_gm && *use_gm)
|
||||
element->broken = TRUE;
|
||||
}
|
||||
|
||||
if (g_key_file_get_integer (keyfile, "scripts", fullpath, NULL) & 1)
|
||||
element->enabled = FALSE;
|
||||
|
|
Loading…
Reference in a new issue