From 1df1b9bdcd7155631d048a3645541db525cd4443 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 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 -- cgit v1.2.3