diff options
| author | Stephen Blott | 2016-10-09 14:22:32 +0100 |
|---|---|---|
| committer | Stephen Blott | 2016-10-09 14:22:32 +0100 |
| commit | 801dd4ea5edfff8b22c3c8c875808ee33e96571e (patch) | |
| tree | dae725d79b1964dd6fd39fed11d21bebc7284d7c /content_scripts/vimium_frontend.coffee | |
| parent | 8535fdde4f7dae1a1a5148d25ee0829423e92e7e (diff) | |
| download | vimium-801dd4ea5edfff8b22c3c8c875808ee33e96571e.tar.bz2 | |
Move logging to the frame's port.
Comminication by the frame's port is faster, and no response is sent.
Diffstat (limited to 'content_scripts/vimium_frontend.coffee')
| -rw-r--r-- | content_scripts/vimium_frontend.coffee | 5 |
1 files changed, 3 insertions, 2 deletions
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). |
