refactor 310 update listener

This commit is contained in:
Mohit Panjwani
2020-05-13 11:12:33 +05:30
parent d4a1f1a784
commit f64d546672
4 changed files with 38 additions and 19 deletions

View File

@ -14,7 +14,7 @@ class Updater
{
use SiteApi;
public static function update($installed, $version)
public static function update($version)
{
$data = null;
$path = null;
@ -26,7 +26,6 @@ class Updater
$url = 'https://craterapp.com/downloads/file/'.$version.'?type=update';
}
$response = static::getRemote($url, ['timeout' => 100, 'track_redirects' => true]);
// Exception