From 01224f5b942cb010881acc3c1bf7e54dbd53f578 Mon Sep 17 00:00:00 2001 From: "jayesh.singh@fplabs.tech" Date: Tue, 17 Oct 2023 13:16:07 +0530 Subject: [PATCH] Reformatted code for reability. --- packages/notebook-extension/src/index.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/notebook-extension/src/index.ts b/packages/notebook-extension/src/index.ts index 98a4bd4031..a885904542 100644 --- a/packages/notebook-extension/src/index.ts +++ b/packages/notebook-extension/src/index.ts @@ -415,8 +415,8 @@ const tabIcon: JupyterFrontEndPlugin = { activate: (app: JupyterFrontEnd, tracker: INotebookTracker) => { // the favicons are provided by Jupyter Server const baseURL = PageConfig.getBaseUrl(); - const notebookIcon = ' /static/favicons/favicon-notebook.ico'; - const busyIcon = ' /static/favicons/favicon-busy-1.ico'; + const notebookIcon = `${baseURL}/static/favicons/favicon-notebook.ico`; + const busyIcon = `${baseURL}/static/favicons/favicon-busy-1.ico`; const updateBrowserFavicon = ( status: ISessionContext.KernelDisplayStatus @@ -426,10 +426,10 @@ const tabIcon: JupyterFrontEndPlugin = { ) as HTMLLinkElement; switch (status) { case 'busy': - link.href = baseURL + busyIcon; + link.href = busyIcon; break; case 'idle': - link.href = baseURL + notebookIcon; + link.href = notebookIcon; break; } };