Skip to content

Commit

Permalink
Return string when storage.sync.get() promise fails
Browse files Browse the repository at this point in the history
  • Loading branch information
gorhill committed May 16, 2023
1 parent d515146 commit d5dec1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platform/common/vapi-background.js
Expand Up @@ -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 ) {
Expand Down

0 comments on commit d5dec1d

Please sign in to comment.