diff options
author | portix <none@none> | 2013-03-15 04:13:20 +0100 |
---|---|---|
committer | portix <none@none> | 2013-03-15 04:13:20 +0100 |
commit | fa00d93c8ddd539617b8257cc7542578ce1818f1 (patch) | |
tree | bbdab6ccc32f432b6f80f4033e4b53c89c5f4e2b /extensions/requestpolicy | |
parent | 5792415c791c941915deea0205babf6c1429845f (diff) | |
download | dwb-fa00d93c8ddd539617b8257cc7542578ce1818f1.zip |
Inline documentation of javascript api; clean up api: new namespaces net and
timer; this refers to connected object in GObject.connect, moving prototype
declarations from util.js to dwb.js; moving some functions from global namespace
to util
Diffstat (limited to 'extensions/requestpolicy')
-rw-r--r-- | extensions/requestpolicy | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/extensions/requestpolicy b/extensions/requestpolicy index 4d0a66f3..9af23275 100644 --- a/extensions/requestpolicy +++ b/extensions/requestpolicy @@ -275,7 +275,7 @@ function showMenu() }); } - tabComplete("Requestpolicy:", labels, function (response) { + util.tabComplete("Requestpolicy:", labels, function (response) { var i, l, len; for (i=0, len = labels.length; i<len; ++i) { @@ -307,7 +307,7 @@ function unblockCurrent() } if (labels.length > 0) { - tabComplete("Unblock:", labels, function(response) { + util.tabComplete("Unblock:", labels, function(response) { listRemove(persistentList, "_alwaysBlock", response, true); if (config.autoreload) tabs.current.reload(); @@ -331,7 +331,7 @@ function unblockAll() if (labels.length > 0) { - tabComplete("Unblock:", labels, function(response) { + util.tabComplete("Unblock:", labels, function(response) { listRemove(persistentList, "_alwaysBlock", response, true); if (config.autoreload) tabs.current.reload(); @@ -362,10 +362,10 @@ var resourceCB = (function () return false; if (message.firstParty) - firstParty = util.domainFromHost(message.firstParty.host); + firstParty = net.domainFromHost(message.firstParty.host); else firstParty = wv.mainFrame.domain; - domain = util.domainFromHost(message.uri.host); + domain = net.domainFromHost(message.uri.host); if (firstParty == domain) return false; |