safety net for call of undefined function in mergeDrive
This commit is contained in:
parent
2259d1b6ac
commit
af40e140f9
@ -70,7 +70,12 @@ define([
|
|||||||
Realtime.whenRealtimeSyncs(proxyData.realtime, cb);
|
Realtime.whenRealtimeSyncs(proxyData.realtime, cb);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
if (oldFo && typeof(oldFo.migrate) === 'function') {
|
||||||
oldFo.migrate(onMigrated);
|
oldFo.migrate(onMigrated);
|
||||||
|
} else {
|
||||||
|
console.log('oldFo.migrate is not a function');
|
||||||
|
onMigrated();
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (typeof(cb) === "function") { cb(); }
|
if (typeof(cb) === "function") { cb(); }
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user