4974-datasources-and-improvements #4
15
src/main.js
15
src/main.js
|
@ -123,17 +123,6 @@ var App = {
|
|||
// Datasources creation
|
||||
this.createDatasources();
|
||||
|
||||
// Check the strings values and the respective keys
|
||||
var stringValues = [
|
||||
'remoteURL',
|
||||
'remoteUser',
|
||||
'remotePass'
|
||||
]
|
||||
for (var i in stringValues) {
|
||||
if (!this.regRead(Conf.regPath, stringValues[i]))
|
||||
this.regWrite(Conf.regPath, stringValues[i], null)
|
||||
}
|
||||
|
||||
// Upload the remote URL
|
||||
this.regWrite(Conf.regPath, 'remoteURL', Conf.defaultRemoteURL)
|
||||
|
||||
|
@ -730,11 +719,11 @@ var App = {
|
|||
* @return {string} Remote server
|
||||
*/
|
||||
getRemoteURL: function() {
|
||||
var datasource = this.regRead(
|
||||
var remoteURL = this.regRead(
|
||||
'HKCU\\SOFTWARE\\Verdnatura\\vn-access',
|
||||
'remoteURL'
|
||||
);
|
||||
return datasource || Conf.defaultRemoteURL;
|
||||
return remoteURL || Conf.defaultRemoteURL;
|
||||
},
|
||||
/**
|
||||
* Get the current datasource path
|
||||
|
|
Loading…
Reference in New Issue