Skip to content
This repository was archived by the owner on Jun 24, 2024. It is now read-only.

Commit 93da633

Browse files
committed
chore: remove internal notebook download button
1 parent 04c4852 commit 93da633

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

src/index.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import {
1212
NotebookEventType,
1313
onNotebookChange,
1414
onNotebookEventReceived,
15-
onNotebookRequested,
1615
send
1716
} from './events';
1817
import { kernels } from './kernels';
@@ -95,16 +94,6 @@ const activate = (
9594
const addBtnSelector = `[title="${addBtnText}"]`;
9695
document.querySelector(addBtnSelector)?.parentElement?.remove();
9796

98-
const buttonContainer = document.querySelector(
99-
'.lm-Widget.p-Widget.jp-Toolbar-spacer.jp-Toolbar-item'
100-
);
101-
const downloadButton = document.createElement('button');
102-
downloadButton.innerText = 'Download';
103-
downloadButton.classList.add('glue__download-button');
104-
105-
downloadButton.onclick = () => onNotebookRequested(tracker);
106-
buttonContainer.appendChild(downloadButton);
107-
10897
/* NOTE: Try this if you need to run content programatically */
10998
// NotebookActions.run(
11099
// notebookPanel.content,

0 commit comments

Comments
 (0)