mirror of
https://github.com/tycrek/degoogle.git
synced 2025-08-11 09:23:58 +02:00
Merge pull request #235 from tycrek/extension-condition
Don't attempt to generate an extension image
This commit is contained in:
@@ -142,6 +142,7 @@ function fdroidLink(appId) {
|
|||||||
* @param {String} link URL to extension WITHOUT trailing slash
|
* @param {String} link URL to extension WITHOUT trailing slash
|
||||||
*/
|
*/
|
||||||
function addonLink(link) {
|
function addonLink(link) {
|
||||||
|
if (!link.includes('addons.mozilla.org')) return;
|
||||||
let addonId = link.split('/')[link.split('/').length - 1]
|
let addonId = link.split('/')[link.split('/').length - 1]
|
||||||
return ``;
|
return ``;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user