Chrome: use new JSON API
This commit is contained in:
parent
e5de81ae4c
commit
a6ee338a5f
1 changed files with 2 additions and 2 deletions
|
|
@ -5,8 +5,8 @@ class GoogleChrome extends PatchBase {
|
|||
parent::__construct('Google', 'Chrome', 'https://www.google.de/chrome/');
|
||||
}
|
||||
function check() : bool {
|
||||
if ($this->fetch('https://omahaproxy.appspot.com/all'))
|
||||
return $this->parse('/win64,stable,([\d\.]+),/');
|
||||
if ($this->fetch_json('https://versionhistory.googleapis.com/v1/chrome/platforms/win64/channels/stable/versions'))
|
||||
return $this->parse_json('version');
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue