Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated fav-icon Base URL from JupyterLab PageConfig. #7109

Merged
merged 5 commits into from
Oct 17, 2023
Merged
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions packages/notebook-extension/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@

import { TrustedComponent } from './trusted';

import { PageConfig, URLExt } from '@jupyterlab/coreutils';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These imports can be grouped with the other imports above.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it will update the PR.



Check failure on line 43 in packages/notebook-extension/src/index.ts

View workflow job for this annotation

GitHub Actions / Test Lint

Delete `⏎`
/**
* The class for kernel status errors.
*/
Expand Down Expand Up @@ -411,8 +414,9 @@
requires: [INotebookTracker],
activate: (app: JupyterFrontEnd, tracker: INotebookTracker) => {
// the favicons are provided by Jupyter Server
const notebookIcon = ' /static/favicons/favicon-notebook.ico';
const busyIcon = ' /static/favicons/favicon-busy-1.ico';
const baseURL = PageConfig.getBaseUrl();
const notebookIcon = URLExt.join(baseURL, 'static/favicons/favicon-notebook.ico');

Check failure on line 418 in packages/notebook-extension/src/index.ts

View workflow job for this annotation

GitHub Actions / Test Lint

Replace `baseURL,·'static/favicons/favicon-notebook.ico'` with `⏎······baseURL,⏎······'static/favicons/favicon-notebook.ico'⏎····`
const busyIcon = URLExt.join(baseURL, 'static/favicons/favicon-busy-1.ico');

const updateBrowserFavicon = (
status: ISessionContext.KernelDisplayStatus
Expand Down
Loading