Skip to content

Commit

Permalink
Reformatted code for reability.
Browse files Browse the repository at this point in the history
  • Loading branch information
onejayesh committed Oct 17, 2023
1 parent 7c01cdb commit 01224f5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/notebook-extension/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -415,8 +415,8 @@ const tabIcon: JupyterFrontEndPlugin<void> = {
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
Expand All @@ -426,10 +426,10 @@ const tabIcon: JupyterFrontEndPlugin<void> = {
) as HTMLLinkElement;
switch (status) {
case 'busy':
link.href = baseURL + busyIcon;
link.href = busyIcon;
break;
case 'idle':
link.href = baseURL + notebookIcon;
link.href = notebookIcon;
break;
}
};
Expand Down

0 comments on commit 01224f5

Please sign in to comment.