소스 검색

Modernize HTML viewer extension.

Afshin Darian 6 년 전
부모
커밋
d061096ff5
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 4 4
      packages/htmlviewer-extension/src/index.tsx

+ 4 - 4
packages/htmlviewer-extension/src/index.tsx

@@ -5,8 +5,8 @@
 
 import {
   ILayoutRestorer,
-  JupyterLab,
-  JupyterLabPlugin
+  JupyterFrontEnd,
+  JupyterFrontEndPlugin
 } from '@jupyterlab/application';
 
 import { ICommandPalette, InstanceTracker } from '@jupyterlab/apputils';
@@ -32,7 +32,7 @@ namespace CommandIDs {
 /**
  * The HTML file handler extension.
  */
-const htmlPlugin: JupyterLabPlugin<void> = {
+const htmlPlugin: JupyterFrontEndPlugin<void> = {
   activate: activateHTMLViewer,
   id: '@jupyterlab/htmlviewer-extension:plugin',
   requires: [ICommandPalette, ILayoutRestorer],
@@ -43,7 +43,7 @@ const htmlPlugin: JupyterLabPlugin<void> = {
  * Activate the HTMLViewer extension.
  */
 function activateHTMLViewer(
-  app: JupyterLab,
+  app: JupyterFrontEnd,
   palette: ICommandPalette,
   restorer: ILayoutRestorer
 ): void {