From e2f715848d1a48481445d7d32d0951e8768c3526 Mon Sep 17 00:00:00 2001 From: Stephen Blott Date: Sun, 8 Feb 2015 12:17:42 +0000 Subject: 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. --- background_scripts/main.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'background_scripts') 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 -- cgit v1.2.3