aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Blott2015-02-08 12:17:42 +0000
committerStephen Blott2015-02-08 12:17:42 +0000
commite2f715848d1a48481445d7d32d0951e8768c3526 (patch)
tree13e57a832bbd45a65ea81e327d3ba0a8ad0d978c
parentbc7db7473456713c8c84f324e71da93145ffa2a0 (diff)
downloadvimium-e2f715848d1a48481445d7d32d0951e8768c3526.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.
-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 c1c8dfc8..6853c3af 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