Fix data migration
This commit is contained in:
parent
f3197ad86c
commit
55025d770c
|
@ -42,7 +42,7 @@ async function migrateOldData() {
|
||||||
var data = await chrome.storage.sync.get()
|
var data = await chrome.storage.sync.get()
|
||||||
if (data.userServer) {
|
if (data.userServer) {
|
||||||
var oldServer = data.userServer
|
var oldServer = data.userServer
|
||||||
console('Migrating server selection ' + oldServer + ' to new format...')
|
console.log('Migrating server selection ' + oldServer + ' to new format...')
|
||||||
// Move data
|
// Move data
|
||||||
await chrome.storage.sync.set({serverList: [oldServer]})
|
await chrome.storage.sync.set({serverList: [oldServer]})
|
||||||
// Delete old data
|
// Delete old data
|
||||||
|
|
Loading…
Reference in New Issue