forked from devol/degooglizzazione
Merge pull request #235 from tycrek/extension-condition
Don't attempt to generate an extension image
This commit is contained in:
commit
13038bcc9e
|
@ -142,6 +142,7 @@ function fdroidLink(appId) {
|
|||
* @param {String} link URL to extension WITHOUT trailing slash
|
||||
*/
|
||||
function addonLink(link) {
|
||||
if (!link.includes('addons.mozilla.org')) return;
|
||||
let addonId = link.split('/')[link.split('/').length - 1]
|
||||
return `![Mozilla Add-on](https://img.shields.io/amo/users/${addonId}?style=flat-square)`;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue