Hello, according to: Browser storage get on MDN - the return value is not “null” or “empty” depending on the request parameters for the storage.
I am working on a extension which heavily relies on the storage data. To ease development, I wrote a small helper get/set function, here only the “get” function of the extension (Flag Cookies “get Storage” function on Github).
The real issue with the current “get” function in the browser extension, at least in my case/understanding, there is no “null” or “empty” or something along that line. I would expect, if nothing is found, nothing will be returned by the “get call”. Simple as that.
Or is there another way to use the “promise” based approach but return nothing to a calling “real time” function in the extension? Perhaps when using “await” and a “async function” call?
Any help would be appreciated!