1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-07-05 11:37:01 +02:00

Return string when storage.sync.get() promise fails

Related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/2660
This commit is contained in:
Raymond Hill 2023-05-16 19:26:46 -04:00
parent d515146d36
commit d5dec1d3c4
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -1627,7 +1627,7 @@ vAPI.cloud = (( ) => {
try {
bin = await webext.storage.sync.get(keys);
} catch (reason) {
return reason;
return String(reason);
}
let chunkCount = 0;
for ( let i = 0; i < maxChunkCountPerItem; i += 16 ) {