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
1 changed files with 1 additions and 1 deletions

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 ) {