summaryrefslogtreecommitdiff
path: root/api/jsapi.txt
diff options
context:
space:
mode:
authorportix <none@none>2013-02-24 14:56:56 +0100
committerportix <none@none>2013-02-24 14:56:56 +0100
commitc9c7b7d771b1a8ddcd694b161646a835d32e06d2 (patch)
tree152e67a3c7c26915b1a1192f2445df2e66b0495e /api/jsapi.txt
parentc73ee707670d85e8c14e75abc0c1ed7a5ad7ec42 (diff)
downloaddwb-c9c7b7d771b1a8ddcd694b161646a835d32e06d2.zip
New object settings
Diffstat (limited to 'api/jsapi.txt')
-rw-r--r--api/jsapi.txt16
1 files changed, 16 insertions, 0 deletions
diff --git a/api/jsapi.txt b/api/jsapi.txt
index 918f7650..25eddd9f 100644
--- a/api/jsapi.txt
+++ b/api/jsapi.txt
@@ -1403,6 +1403,22 @@ Deferred.when(asyncOperation(), function() {...});
Deferred.when(syncOperation(), function() {...});
---------------------------------
+[[settings]]
+=== settings ===
+
+Readonly object that can be used to query dwb's current settings, all settings
+can also be used in camelcase, to modify settings *execute* can be used.
+
+.Example
+
+====
+[source,javascript]
+---------------------------------
+if (settings.enablePrivateBrowsing == true)
+ execute("set enable-private-browsing false");
+---------------------------------
+====
+
[[Webkitobjects]]
== Webkit objects ==