Game now saves to OS-specific data directory. Fixed issue where logs folder did not save to correct location. Fixed issue with authentication code. Continuing work on Java validation code.
This commit is contained in:
@@ -267,6 +267,18 @@ class JavaGuard extends EventEmitter {
|
||||
})
|
||||
}
|
||||
|
||||
_headOracleJREDlSize(url){
|
||||
return new Promise((resolve, reject) => {
|
||||
request.head(url, (err, resp, body) => {
|
||||
if(err){
|
||||
reject(err)
|
||||
} else {
|
||||
resolve(resp.headers['content-length'])
|
||||
}
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
async _downloadOracleJRE(acceptLicense, dir){
|
||||
|
||||
if(!acceptLicense){
|
||||
|
||||
Reference in New Issue
Block a user