File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
packages/notebook-extension/src Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ import {
14
14
15
15
import { Cell , CodeCell } from '@jupyterlab/cells' ;
16
16
17
- import { Text , Time } from '@jupyterlab/coreutils' ;
17
+ import { PageConfig , Text , Time , URLExt } from '@jupyterlab/coreutils' ;
18
18
19
19
import { IDocumentManager } from '@jupyterlab/docmanager' ;
20
20
@@ -411,8 +411,12 @@ const tabIcon: JupyterFrontEndPlugin<void> = {
411
411
requires : [ INotebookTracker ] ,
412
412
activate : ( app : JupyterFrontEnd , tracker : INotebookTracker ) => {
413
413
// the favicons are provided by Jupyter Server
414
- const notebookIcon = ' /static/favicons/favicon-notebook.ico' ;
415
- const busyIcon = ' /static/favicons/favicon-busy-1.ico' ;
414
+ const baseURL = PageConfig . getBaseUrl ( ) ;
415
+ const notebookIcon = URLExt . join (
416
+ baseURL ,
417
+ 'static/favicons/favicon-notebook.ico'
418
+ ) ;
419
+ const busyIcon = URLExt . join ( baseURL , 'static/favicons/favicon-busy-1.ico' ) ;
416
420
417
421
const updateBrowserFavicon = (
418
422
status : ISessionContext . KernelDisplayStatus
You can’t perform that action at this time.
0 commit comments