Skip to content

Commit d516c0e

Browse files
authored
Merge pull request #28 from mwakaba2/fix-icon-url
Fix icon path
2 parents aa73a27 + 7f9f3cc commit d516c0e

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

binder/environment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ channels:
44
dependencies:
55
- jupyterlab>=3.1
66
- pip:
7-
- jupyterlab-notifications==0.3.1
7+
- jupyterlab-notifications==0.3.2

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jupyterlab-notifications",
3-
"version": "0.3.1",
3+
"version": "0.3.2",
44
"description": "Jupyterlab extension to show notebook cell completion browser notifications",
55
"keywords": [
66
"jupyter",

src/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { KernelError, Notebook, NotebookActions } from '@jupyterlab/notebook';
66
import { Cell } from '@jupyterlab/cells';
77
import { ISettingRegistry } from '@jupyterlab/settingregistry';
88
import { ICodeCellModel } from '@jupyterlab/cells';
9+
import { PageConfig } from '@jupyterlab/coreutils';
910
import LRU from 'lru-cache';
1011
import moment from 'moment';
1112
import { checkBrowserNotificationSettings } from './settings';
@@ -28,8 +29,9 @@ function displayNotification(
2829
error: KernelError | null,
2930
lastCellOnly: boolean
3031
): void {
32+
const base = PageConfig.getBaseUrl();
3133
const notificationPayload = {
32-
icon: '/static/favicon.ico',
34+
icon: base + 'static/favicon.ico',
3335
body: ''
3436
};
3537
const title = failedExecution

0 commit comments

Comments
 (0)