aboutsummaryrefslogtreecommitdiffstats
path: root/ethereal/assets/qml
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-05-02 04:59:16 +0800
committerobscuren <geffobscura@gmail.com>2014-05-02 04:59:16 +0800
commit9e481804a72ce78792826e215cf3660819bbb18a (patch)
treeacb76bcb9aea49eaefe725585fe607801ec32087 /ethereal/assets/qml
parent76cd14ab7b2e0d96652ffd63aa08c046294e06d6 (diff)
downloaddexon-9e481804a72ce78792826e215cf3660819bbb18a.tar.gz
dexon-9e481804a72ce78792826e215cf3660819bbb18a.tar.zst
dexon-9e481804a72ce78792826e215cf3660819bbb18a.zip
Added a 'set' method to change window settings for external applications
Diffstat (limited to 'ethereal/assets/qml')
-rw-r--r--ethereal/assets/qml/webapp.qml6
1 files changed, 6 insertions, 0 deletions
diff --git a/ethereal/assets/qml/webapp.qml b/ethereal/assets/qml/webapp.qml
index c0df0b66e..1c1ac852d 100644
--- a/ethereal/assets/qml/webapp.qml
+++ b/ethereal/assets/qml/webapp.qml
@@ -91,6 +91,12 @@ ApplicationWindow {
require(1)
postData(data._seed, null)
break;
+ case "set":
+ for(var key in data.args) {
+ if(webview.hasOwnProperty(key)) {
+ window[key] = data.args[key];
+ }
+ }
}
} catch(e) {
console.log(data.call + ": " + e)