Don't call chrome.storage[area].set with empty data.
This commit is contained in:
parent
0e10e3fd81
commit
b5a1c3a287
@ -269,7 +269,7 @@ $.set = do ->
|
|||||||
timeout = {}
|
timeout = {}
|
||||||
|
|
||||||
setArea = (area) ->
|
setArea = (area) ->
|
||||||
return if timeout[area]
|
return if !Object.keys(items[area]).length or timeout[area]
|
||||||
chrome.storage[area].set items[area], ->
|
chrome.storage[area].set items[area], ->
|
||||||
if chrome.runtime.lastError
|
if chrome.runtime.lastError
|
||||||
c.error chrome.runtime.lastError.message
|
c.error chrome.runtime.lastError.message
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user