From 5c5894198d8465021d5f0839090bbff075ea29de Mon Sep 17 00:00:00 2001 From: Mayhem Date: Sat, 8 Jun 2013 21:04:23 +0200 Subject: [PATCH] Log `chrome.runtime.lastError`s when getting. Don't reset `items`, no need to. crbug.com/245798 --- lib/$.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/$.coffee b/lib/$.coffee index a37a9c494..8a8b23f0e 100644 --- a/lib/$.coffee +++ b/lib/$.coffee @@ -263,9 +263,10 @@ $.get = (key, val, cb) -> else (syncItems or= {})[key] = val - items = {} count = 0 done = (item) -> + if chrome.runtime.lastError + c.error chrome.runtime.lastError $.extend items, item cb items unless --count