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/');
|
parent::__construct('Google', 'Chrome', 'https://www.google.de/chrome/');
|
||||||
}
|
}
|
||||||
function check() : bool {
|
function check() : bool {
|
||||||
if ($this->fetch('https://omahaproxy.appspot.com/all'))
|
if ($this->fetch_json('https://versionhistory.googleapis.com/v1/chrome/platforms/win64/channels/stable/versions'))
|
||||||
return $this->parse('/win64,stable,([\d\.]+),/');
|
return $this->parse_json('version');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue