Settings page
This commit is contained in:
parent
ad275cf1fb
commit
ab4dfc611b
6 changed files with 184 additions and 8 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue