Skip to content

Commit

Permalink
Merge pull request #28 from mwakaba2/fix-icon-url
Browse files Browse the repository at this point in the history
Fix icon path
  • Loading branch information
mwakaba2 authored Aug 8, 2021
2 parents aa73a27 + 7f9f3cc commit d516c0e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion binder/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ channels:
dependencies:
- jupyterlab>=3.1
- pip:
- jupyterlab-notifications==0.3.1
- jupyterlab-notifications==0.3.2
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jupyterlab-notifications",
"version": "0.3.1",
"version": "0.3.2",
"description": "Jupyterlab extension to show notebook cell completion browser notifications",
"keywords": [
"jupyter",
Expand Down
4 changes: 3 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { KernelError, Notebook, NotebookActions } from '@jupyterlab/notebook';
import { Cell } from '@jupyterlab/cells';
import { ISettingRegistry } from '@jupyterlab/settingregistry';
import { ICodeCellModel } from '@jupyterlab/cells';
import { PageConfig } from '@jupyterlab/coreutils';
import LRU from 'lru-cache';
import moment from 'moment';
import { checkBrowserNotificationSettings } from './settings';
Expand All @@ -28,8 +29,9 @@ function displayNotification(
error: KernelError | null,
lastCellOnly: boolean
): void {
const base = PageConfig.getBaseUrl();
const notificationPayload = {
icon: '/static/favicon.ico',
icon: base + 'static/favicon.ico',
body: ''
};
const title = failedExecution
Expand Down

0 comments on commit d516c0e

Please sign in to comment.