@@ -35,7 +35,6 @@ const tray = require('./tray');
3535const vectorMenu = require ( './vectormenu' ) ;
3636const webContentsHandler = require ( './webcontents-handler' ) ;
3737const updater = require ( './updater' ) ;
38- const { migrateFromOldOrigin } = require ( './originMigrator' ) ;
3938
4039const windowStateKeeper = require ( 'electron-window-state' ) ;
4140const Store = require ( 'electron-store' ) ;
@@ -64,11 +63,6 @@ if (argv["help"]) {
6463 app . exit ( ) ;
6564}
6665
67- // boolean flag set whilst we are doing one-time origin migration
68- // We only serve the origin migration script while we're actually
69- // migrating to mitigate any risk of it being used maliciously.
70- let migratingOrigin = false ;
71-
7266if ( argv [ 'profile-dir' ] ) {
7367 app . setPath ( 'userData' , argv [ 'profile-dir' ] ) ;
7468} else if ( argv [ 'profile' ] ) {
@@ -231,11 +225,6 @@ ipcMain.on('ipcCall', async function(ev, payload) {
231225 mainWindow . focus ( ) ;
232226 }
233227 break ;
234- case 'origin_migrate' :
235- migratingOrigin = true ;
236- await migrateFromOldOrigin ( ) ;
237- migratingOrigin = false ;
238- break ;
239228 case 'getConfig' :
240229 ret = vectorConfig ;
241230 break ;
@@ -477,13 +466,7 @@ app.on('ready', () => {
477466
478467 let baseDir ;
479468 // first part of the path determines where we serve from
480- if ( migratingOrigin && target [ 1 ] === 'origin_migrator_dest' ) {
481- // the origin migrator destination page
482- // (only the destination script needs to come from the
483- // custom protocol: the source part is loaded from a
484- // file:// as that's the origin we're migrating from).
485- baseDir = __dirname + "/../../origin_migrator/dest" ;
486- } else if ( target [ 1 ] === 'webapp' ) {
469+ if ( target [ 1 ] === 'webapp' ) {
487470 baseDir = __dirname + "/../../webapp" ;
488471 } else {
489472 callback ( { error : - 6 } ) ; // FILE_NOT_FOUND
0 commit comments