Skip to content

Commit

Permalink
using object.create(null) when initializing the storage doesnt make s…
Browse files Browse the repository at this point in the history
…ense since it wont be null when restoring storage that already exists
  • Loading branch information
GarboMuffin committed Jan 20, 2025
1 parent 13977e0 commit 6c05a97
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions extensions/CubesterYT/Webhooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
let webhooks;
function setupStorage() {
if (!runtime.extensionStorage["cubesterWebhooks"]) {
runtime.extensionStorage["cubesterWebhooks"] = Object.create(null);
runtime.extensionStorage["cubesterWebhooks"].webhooks =
Object.create(null);
runtime.extensionStorage["cubesterWebhooks"] = {
webhooks: {}
};
}
webhooks = runtime.extensionStorage["cubesterWebhooks"].webhooks;
}
Expand Down

0 comments on commit 6c05a97

Please sign in to comment.