A bit of refactoring and new functionality for removeAccount method.

This commit is contained in:
Valverde Antonio
2014-07-29 16:21:46 +09:00
parent 437596e6c6
commit 1386b438c0
8 changed files with 26 additions and 18 deletions

View File

@@ -218,8 +218,11 @@ module.exports = function ControlServiceFactory(
return sendTwoWay('screen.capture')
}
this.removeAccount = function() {
return sendTwoWay('account.remove')
this.removeAccount = function(type, account) {
return sendTwoWay('account.remove', {
type: type
, account: account
})
}
this.addAccountMenu = function() {