Disconnect other tabs when migrating the drive

This commit is contained in:
yflory
2017-06-09 12:23:28 +02:00
parent 51e0d40572
commit f8c69573fd
3 changed files with 20 additions and 3 deletions

View File

@@ -914,6 +914,7 @@ define([
var migrateToNewFormat = function () {
if (!files[OLD_FILES_DATA]) { return; }
try {
files.migrate = 1;
var oldData = files[OLD_FILES_DATA].slice();
if (!files[FILES_DATA]) {
files[FILES_DATA] = {};
@@ -953,6 +954,8 @@ define([
});
files[OLD_FILES_DATA] = undefined;
delete files[OLD_FILES_DATA];
files.migrate = undefined;
delete files.migrate;
} catch(e) {
console.error(e);
}