From b5a1c3a2874d825e3f8d3251e61e59e00ce56ba1 Mon Sep 17 00:00:00 2001 From: Mayhem Date: Tue, 21 Jan 2014 09:11:43 +0100 Subject: [PATCH] Don't call chrome.storage[area].set with empty data. --- lib/$.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/$.coffee b/lib/$.coffee index b971cfa7a..7abfed7c3 100644 --- a/lib/$.coffee +++ b/lib/$.coffee @@ -269,7 +269,7 @@ $.set = do -> timeout = {} setArea = (area) -> - return if timeout[area] + return if !Object.keys(items[area]).length or timeout[area] chrome.storage[area].set items[area], -> if chrome.runtime.lastError c.error chrome.runtime.lastError.message