Settings page

This commit is contained in:
Thomas Perl 2015-05-23 15:36:11 +02:00
parent ad275cf1fb
commit ab4dfc611b
6 changed files with 184 additions and 8 deletions

View file

@ -77,6 +77,16 @@ Python {
});
}
function setConfig(key, value) {
py.call('main.set_config_value', [key, value]);
}
function getConfig(key, callback) {
py.call('main.get_config_value', [key], function (result) {
callback(result);
});
}
onReceived: {
console.log('unhandled message: ' + data);
}