Finally Control button is implemented.

Also the route /control tries to use the last used device.
This commit is contained in:
Gunther Brunner
2014-09-11 18:15:16 +09:00
parent f0d52bf2c6
commit dbfbe53b37
7 changed files with 64 additions and 31 deletions

View File

@@ -42,6 +42,10 @@ module.exports = function SettingsServiceFactory(
applyDelta(delta)
}
SettingsService.get = function (key) {
return settings[key]
}
SettingsService.set = function(key, value) {
var delta = Object.create(null)
delta[key] = value