jQuery: fix check
This commit is contained in:
parent
4d14d04d89
commit
d129cb095b
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue