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:
Scott Nonnenberg 2017-10-18 11:57:34 -07:00 committed by GitHub
parent 7e328bcacd
commit 66d78d3ca6

View file

@ -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');