refs #4974 Removed remoteUser and remotePass
This commit is contained in:
parent
2ce508c6bc
commit
0f940e9d19
15
src/main.js
15
src/main.js
|
@ -123,17 +123,6 @@ var App = {
|
||||||
// Datasources creation
|
// Datasources creation
|
||||||
this.createDatasources();
|
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
|
// Upload the remote URL
|
||||||
this.regWrite(Conf.regPath, 'remoteURL', Conf.defaultRemoteURL)
|
this.regWrite(Conf.regPath, 'remoteURL', Conf.defaultRemoteURL)
|
||||||
|
|
||||||
|
@ -730,11 +719,11 @@ var App = {
|
||||||
* @return {string} Remote server
|
* @return {string} Remote server
|
||||||
*/
|
*/
|
||||||
getRemoteURL: function() {
|
getRemoteURL: function() {
|
||||||
var datasource = this.regRead(
|
var remoteURL = this.regRead(
|
||||||
'HKCU\\SOFTWARE\\Verdnatura\\vn-access',
|
'HKCU\\SOFTWARE\\Verdnatura\\vn-access',
|
||||||
'remoteURL'
|
'remoteURL'
|
||||||
);
|
);
|
||||||
return datasource || Conf.defaultRemoteURL;
|
return remoteURL || Conf.defaultRemoteURL;
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Get the current datasource path
|
* Get the current datasource path
|
||||||
|
|
Loading…
Reference in New Issue