File tree Expand file tree Collapse file tree 2 files changed +2
-29
lines changed
application-extension/src Expand file tree Collapse file tree 2 files changed +2
-29
lines changed Original file line number Diff line number Diff line change 6
6
IRouter ,
7
7
ITreePathUpdater ,
8
8
JupyterFrontEnd ,
9
- JupyterFrontEndPlugin ,
10
- Router
9
+ JupyterFrontEndPlugin
11
10
} from '@jupyterlab/application' ;
12
11
13
12
import {
@@ -295,31 +294,6 @@ const paths: JupyterFrontEndPlugin<JupyterFrontEnd.IPaths> = {
295
294
}
296
295
} ;
297
296
298
- /**
299
- * The default URL router provider.
300
- */
301
- const router : JupyterFrontEndPlugin < IRouter > = {
302
- id : '@jupyter-notebook/application-extension:router' ,
303
- autoStart : true ,
304
- provides : IRouter ,
305
- requires : [ JupyterFrontEnd . IPaths ] ,
306
- activate : ( app : JupyterFrontEnd , paths : JupyterFrontEnd . IPaths ) => {
307
- const { commands } = app ;
308
- const base = paths . urls . base ;
309
- const router = new Router ( { base, commands } ) ;
310
- void app . started . then ( ( ) => {
311
- // Route the very first request on load.
312
- void router . route ( ) ;
313
-
314
- // Route all pop state events.
315
- window . addEventListener ( 'popstate' , ( ) => {
316
- void router . route ( ) ;
317
- } ) ;
318
- } ) ;
319
- return router ;
320
- }
321
- } ;
322
-
323
297
/**
324
298
* The default session dialogs plugin
325
299
*/
@@ -932,7 +906,6 @@ const plugins: JupyterFrontEndPlugin<any>[] = [
932
906
opener ,
933
907
pages ,
934
908
paths ,
935
- router ,
936
909
sessionDialogs ,
937
910
shell ,
938
911
sidebarVisibility ,
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ import { IDocumentWidget, DocumentRegistry } from '@jupyterlab/docregistry';
15
15
import { Signal } from '@lumino/signaling' ;
16
16
17
17
/**
18
- * A plugin to open document in a new browser tab.
18
+ * A plugin to open documents in a new browser tab.
19
19
*
20
20
*/
21
21
const opener : JupyterFrontEndPlugin < IDocumentWidgetOpener > = {
You can’t perform that action at this time.
0 commit comments