Log when we've detected a new version (#1567)
Helps with tracking down per-version bugs when log could contain output from more than one version.
This commit is contained in:
parent
7e328bcacd
commit
66d78d3ca6
1 changed files with 8 additions and 0 deletions
|
@ -79,6 +79,14 @@
|
|||
function start() {
|
||||
ConversationController.load();
|
||||
|
||||
var currentVersion = window.config.version;
|
||||
var lastVersion = storage.get('version');
|
||||
storage.put('version', currentVersion);
|
||||
|
||||
if (!lastVersion || currentVersion !== lastVersion) {
|
||||
console.log('New version detected:', currentVersion);
|
||||
}
|
||||
|
||||
window.dispatchEvent(new Event('storage_ready'));
|
||||
|
||||
console.log('listening for registration events');
|
||||
|
|
Loading…
Reference in a new issue