From d5dec1d3c4f393ea048c105f80d7c40eade60621 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Tue, 16 May 2023 19:26:46 -0400 Subject: [PATCH] Return string when storage.sync.get() promise fails Related issue: - https://github.com/uBlockOrigin/uBlock-issues/issues/2660 --- platform/common/vapi-background.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/common/vapi-background.js b/platform/common/vapi-background.js index 1a5503953..9cb8f901e 100644 --- a/platform/common/vapi-background.js +++ b/platform/common/vapi-background.js @@ -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 ) {