aboutsummaryrefslogtreecommitdiffstats
path: root/background_scripts
diff options
context:
space:
mode:
authorStephen Blott2015-02-08 12:17:42 +0000
committerStephen Blott2015-02-08 12:21:47 +0000
commit1df1b9bdcd7155631d048a3645541db525cd4443 (patch)
tree19f6a7ac5ce88fafb031d000befbfa0f494689f7 /background_scripts
parentd27136549f24f65ec0429dc5d845de1f609ff559 (diff)
downloadvimium-1df1b9bdcd7155631d048a3645541db525cd4443.tar.bz2
Fix background-page error on "yy".
The return value from copyToClipboard is passed to sendResponse by the chrome.runtime.onMessage.addListener listener. This was using the (somewhat arbitrary) value returned by Clipboard.copy, which turns out to be circular, causing an error. This fixes that.
Diffstat (limited to 'background_scripts')
-rw-r--r--background_scripts/main.coffee2
1 files changed, 1 insertions, 1 deletions
diff --git a/background_scripts/main.coffee b/background_scripts/main.coffee
index 07127af9..06df8988 100644
--- a/background_scripts/main.coffee
+++ b/background_scripts/main.coffee
@@ -170,7 +170,7 @@ upgradeNotificationClosed = (request) ->
#
# Copies some data (request.data) to the clipboard.
#
-copyToClipboard = (request) -> Clipboard.copy(request.data)
+copyToClipboard = (request) -> Clipboard.copy(request.data); null
#
# Selects the tab with the ID specified in request.id