From 5df0801c64d867a26f03b240a439a9e884d5bc06 Mon Sep 17 00:00:00 2001 From: Official Noob <31563761+OfficialNoob@users.noreply.github.com> Date: Thu, 16 Jan 2020 18:13:07 +0000 Subject: [PATCH] deleteProperty() if no key provided delete by id --- SB.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/SB.js b/SB.js index 4b7f9330..37fcbea9 100644 --- a/SB.js +++ b/SB.js @@ -38,6 +38,9 @@ class MapIO { } deleteProperty(key) { + if(key === undefined) { + return chrome.storage.sync.remove(this.id); + } if (this.map.has(key)) { // Proxy to map this.map.delete(key);