mirror of https://github.com/gorhill/uBlock.git
Return string when storage.sync.get() promise fails
Related issue: - https://github.com/uBlockOrigin/uBlock-issues/issues/2660
This commit is contained in:
parent
d515146d36
commit
d5dec1d3c4
|
@ -1627,7 +1627,7 @@ vAPI.cloud = (( ) => {
|
||||||
try {
|
try {
|
||||||
bin = await webext.storage.sync.get(keys);
|
bin = await webext.storage.sync.get(keys);
|
||||||
} catch (reason) {
|
} catch (reason) {
|
||||||
return reason;
|
return String(reason);
|
||||||
}
|
}
|
||||||
let chunkCount = 0;
|
let chunkCount = 0;
|
||||||
for ( let i = 0; i < maxChunkCountPerItem; i += 16 ) {
|
for ( let i = 0; i < maxChunkCountPerItem; i += 16 ) {
|
||||||
|
|
Loading…
Reference in New Issue