From fa00d93c8ddd539617b8257cc7542578ce1818f1 Mon Sep 17 00:00:00 2001 From: portix Date: Fri, 15 Mar 2013 04:13:20 +0100 Subject: 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 --- extensions/requestpolicy | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'extensions/requestpolicy') 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 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; -- cgit v1.2.3