if (runtime.storage.getItem("nonexistingkey") === null) { console.log(true) } else { console.log(false) }
Refer to the documentation, and you will find that method returns a Promise. You should await it.
Develop games in your browser. Powerful, performant & highly capable.
Hello Ashley,
Is this correct ?
if (await runtime.storage.getItem("nonexistingkey") === null) { console.log(true) } else { console.log(false) }
Best wishes,
Eleanor Jacques-Morel