preserve installationUrl
This commit is contained in:
parent
992b89f0eb
commit
0034dcb941
|
@ -512,13 +512,16 @@ const styleMan = (() => {
|
||||||
res = style.md5Url = url.replace('update.update.userstyles', 'update.userstyles');
|
res = style.md5Url = url.replace('update.update.userstyles', 'update.userstyles');
|
||||||
}
|
}
|
||||||
/* Default homepage URL for external styles installed from a known distro */
|
/* Default homepage URL for external styles installed from a known distro */
|
||||||
if ((url = style.updateUrl) && (url =
|
if (
|
||||||
URLS.extractGreasyForkInstallUrl(url) ||
|
(!style.url || !style.installationUrl) &&
|
||||||
URLS.extractUsoArchiveInstallUrl(url) ||
|
(url = style.updateUrl) &&
|
||||||
URLS.extractUSwInstallUrl(url)
|
(url = URLS.extractGreasyForkInstallUrl(url) ||
|
||||||
)) {
|
URLS.extractUsoArchiveInstallUrl(url) ||
|
||||||
|
URLS.extractUSwInstallUrl(url)
|
||||||
|
)
|
||||||
|
) {
|
||||||
if (!style.url) res = style.url = url;
|
if (!style.url) res = style.url = url;
|
||||||
if (style.installationUrl !== url) res = style.installationUrl = url;
|
if (!style.installationUrl) res = style.installationUrl = url;
|
||||||
}
|
}
|
||||||
return Boolean(res);
|
return Boolean(res);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user