Don't call chrome.storage[area].set with empty data.

This commit is contained in:
Mayhem 2014-01-21 09:11:43 +01:00
parent 0e10e3fd81
commit b5a1c3a287

View File

@ -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