'Can i split JSON string and store them in different storage items in MS Edge extension, to gain more storage?
It seems MS Edge allows extensions to store maximum 1MB data per storage item according to this answer. But I need more storage. So I thought maybe I can store a JSON string in different storage items by splitting it. For example, say I have following JSON string:
[{"key1":"value1"}]
Now, if I split this string into two I'll get:
chunk 1: [{"key1":
chunk 2: "value1"}]
And I will store these chunks in different storage items as following:
chrome.storage.sync.set({
chunk1: `[{"key1":`,
chunk2: `"value1"}]`
});
So now I will get more storage (+1MB i guess).
But I'm not sure if this is the right approach. Can anyone tell me if this approach is okay or there's a better way to do it?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
