diff options
Diffstat (limited to 'background_scripts/main.coffee')
| -rw-r--r-- | background_scripts/main.coffee | 5 | 
1 files changed, 5 insertions, 0 deletions
| diff --git a/background_scripts/main.coffee b/background_scripts/main.coffee index 0b19ce4a..07e89e08 100644 --- a/background_scripts/main.coffee +++ b/background_scripts/main.coffee @@ -666,6 +666,10 @@ handleFrameFocused = (request, sender) ->  sendMessageToFrames = (request, sender) ->    chrome.tabs.sendMessage sender.tab.id, request.message +# For debugging only. This allows content scripts to log messages to the background page's console. +bgLog = (request, sender) -> +  console.log "#{sender.tab.id}/#{request.frameId}", request.message +  # Port handler mapping  portHandlers =    keyDown: handleKeyDown, @@ -694,6 +698,7 @@ sendRequestHandlers =    gotoMark: Marks.goto.bind(Marks)    setBadge: setBadge    sendMessageToFrames: sendMessageToFrames +  log: bgLog  # We always remove chrome.storage.local/findModeRawQueryListIncognito on startup.  chrome.storage.local.remove "findModeRawQueryListIncognito" | 
