jQuery: fix check

This commit is contained in:
Steffen Lange 2024-06-28 20:43:25 +02:00
parent 4d14d04d89
commit d129cb095b

View file

@ -5,8 +5,8 @@ class JQuery extends PatchBase {
parent::__construct('jQuery Foundation', 'jQuery', 'https://jquery.com/download/');
}
function check() : bool {
if ($this->fetch_json('https://api.github.com/repos/jquery/jquery/tags'))
return $this->parse_json('name');
if ($this->fetch_json('https://api.github.com/repos/jquery/jquery/releases/latest'))
return $this->parse_json('tag_name');
return false;
}
}