From 801dd4ea5edfff8b22c3c8c875808ee33e96571e Mon Sep 17 00:00:00 2001 From: Stephen Blott Date: Sun, 9 Oct 2016 14:22:32 +0100 Subject: Move logging to the frame's port. Comminication by the frame's port is faster, and no response is sent. --- content_scripts/vimium_frontend.coffee | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'content_scripts/vimium_frontend.coffee') diff --git a/content_scripts/vimium_frontend.coffee b/content_scripts/vimium_frontend.coffee index c02c573b..2dc39ad5 100644 --- a/content_scripts/vimium_frontend.coffee +++ b/content_scripts/vimium_frontend.coffee @@ -32,10 +32,11 @@ textInputXPath = (-> # This is set by Frame.registerFrameId(). A frameId of 0 indicates that this is the top frame in the tab. frameId = null -# For debugging only. This logs to the console on the background page. +# For debugging only. This writes to the Vimium log page, the URL of whichis shown on the console on the +# background page. bgLog = (args...) -> args = (arg.toString() for arg in args) - chrome.runtime.sendMessage handler: "log", message: args.join " " + Frame.postMessage "log", message: args.join " " # If an input grabs the focus before the user has interacted with the page, then grab it back (if the # grabBackFocus option is set). -- cgit v1.2.3