Don't mask top-level params

This commit is contained in:
Jaco Greeff 2017-08-09 11:01:34 +02:00
parent 2d5541f533
commit f967bc4ac0

View File

@ -252,11 +252,11 @@ export default class Store {
return callback(null, this.createToken(from));
case 'shell_setAppVisibility':
const [appId, visibility] = params;
const [changeId, visibility] = params;
return callback(null, visibility
? visibleStore.showApp(appId)
: visibleStore.hideApp(appId)
? visibleStore.showApp(changeId)
: visibleStore.hideApp(changeId)
);
case 'shell_setMethodPermissions':