Log chrome.runtime.lastErrors when getting.
Don't reset `items`, no need to. crbug.com/245798
This commit is contained in:
parent
45fcd8f59d
commit
5c5894198d
@ -263,9 +263,10 @@ $.get = (key, val, cb) ->
|
|||||||
else
|
else
|
||||||
(syncItems or= {})[key] = val
|
(syncItems or= {})[key] = val
|
||||||
|
|
||||||
items = {}
|
|
||||||
count = 0
|
count = 0
|
||||||
done = (item) ->
|
done = (item) ->
|
||||||
|
if chrome.runtime.lastError
|
||||||
|
c.error chrome.runtime.lastError
|
||||||
$.extend items, item
|
$.extend items, item
|
||||||
cb items unless --count
|
cb items unless --count
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user