File tree Expand file tree Collapse file tree 2 files changed +8
-10
lines changed Expand file tree Collapse file tree 2 files changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -570,14 +570,13 @@ export class SimpleWorkerServer implements IWorkerServer {
570570 }
571571
572572 const url = FileAccess . asBrowserUri ( `${ moduleId } .js` as AppResourcePath ) . toString ( true ) ;
573- console . log ( "🚀 ~ SimpleWorkerServer ~ initialize ~ url:" , url )
574- // return import(`${url}`).then((module: { create: IRequestHandlerFactory }) => {
575- // this._requestHandler = module.create(this);
576-
577- // if (!this._requestHandler) {
578- // throw new Error(`No RequestHandler!`);
579- // }
580- // });
573+ return import ( `${ url } ` ) . then ( ( module : { create : IRequestHandlerFactory } ) => {
574+ this . _requestHandler = module . create ( this ) ;
575+
576+ if ( ! this . _requestHandler ) {
577+ throw new Error ( `No RequestHandler!` ) ;
578+ }
579+ } ) ;
581580 }
582581}
583582
Original file line number Diff line number Diff line change @@ -559,8 +559,7 @@ export class EditorSimpleWorker extends BaseEditorSimpleWorker {
559559 } ;
560560
561561 const url = FileAccess . asBrowserUri ( `${ moduleId } .js` as AppResourcePath ) . toString ( true ) ;
562- console . log ( "🚀 ~ EditorSimpleWorker ~ returnnewPromise ~ url:" , url )
563- // import(`${url}`).then(onModuleCallback).catch(reject);
562+ import ( `${ url } ` ) . then ( onModuleCallback ) . catch ( reject ) ;
564563 } ) ;
565564 }
566565
You can’t perform that action at this time.
0 commit comments