Make debug log persistent
Save log entries in indexedDB rather than just in memory. Reload them whenever the background page is refreshed. // FREEBIE
This commit is contained in:
parent
86132a38a8
commit
87ddcef333
4 changed files with 50 additions and 7 deletions
|
@ -100,6 +100,12 @@
|
|||
});
|
||||
storage.fetch();
|
||||
}
|
||||
},
|
||||
{
|
||||
version: "7.0",
|
||||
migrate: function(transaction, next) {
|
||||
transaction.db.createObjectStore("debug");
|
||||
}
|
||||
}
|
||||
];
|
||||
}());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue