pulse
pulse copied to clipboard
Setting and deleting storage.id[] values use different keys
Randomly looking at /src/index.js, I noticed that when we set the storage.id[*]
we set the key as msg.payload
, but when we delete the storage.id[*]
the key we're using is msg.payload.id
. Not sure if it's a bug, or if I'm just misreading...
-
/src/index.js:27 says:
storage.id[msg.payload] = tabs.activeTab;
-
/src/index.js:35 says:
delete storage.id[msg.payload.id];