refs #4974 Solved bug app open error

This commit is contained in:
Guillermo Bonet 2023-02-07 19:02:05 +01:00
parent cc79a76120
commit 1a6f22e539
1 changed files with 51 additions and 45 deletions

View File

@ -405,6 +405,7 @@ var App = {
);
},
onVersionRequest: function(err, res) {
try {
if (err)
throw new Error ('Version could not be retrieved: '+ err.message +': ');
@ -418,6 +419,7 @@ var App = {
throw new Error(_('Application it\'s already open'));
}
// Checks if MDB exists
if (!this.fso.fileExists(this.mdbFile))
lastVersion = res.version;
@ -457,6 +459,10 @@ var App = {
request.send();
} else
App.openMdb();
}
catch (err) {
this.catchError(err);
}
},
mdbGetValue: function(query, field, parseFn) {
var value;