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:
lilia 2016-02-02 17:55:27 -08:00
parent 86132a38a8
commit 87ddcef333
4 changed files with 50 additions and 7 deletions

View file

@ -100,6 +100,12 @@
});
storage.fetch();
}
},
{
version: "7.0",
migrate: function(transaction, next) {
transaction.db.createObjectStore("debug");
}
}
];
}());