From 7e1e29a9d42404abaf16f14cf6f5c609f1857b20 Mon Sep 17 00:00:00 2001 From: martinRenou Date: Wed, 10 Mar 2021 12:08:10 +0100 Subject: [PATCH] Set global beakerx vars early --- beakerx_widgets/js/src/extension.ts | 3 +++ beakerx_widgets/js/src/index-embed.ts | 3 +++ beakerx_widgets/js/src/jupyterlab-plugin.ts | 3 +++ beakerx_widgets/js/src/lab/plugin/index.ts | 3 +++ beakerx_widgets/js/src/tree-extension.ts | 3 +++ 5 files changed, 15 insertions(+) diff --git a/beakerx_widgets/js/src/extension.ts b/beakerx_widgets/js/src/extension.ts index d23ff60..e6f830a 100644 --- a/beakerx_widgets/js/src/extension.ts +++ b/beakerx_widgets/js/src/extension.ts @@ -14,6 +14,9 @@ * limitations under the License. */ +window.beakerx = {}; +window.beakerxHolder = {}; + import './public-path'; import 'flatpickr/dist/flatpickr.css'; import 'jquery-ui/themes/base/all.css'; diff --git a/beakerx_widgets/js/src/index-embed.ts b/beakerx_widgets/js/src/index-embed.ts index 768d7a6..df9cbb6 100644 --- a/beakerx_widgets/js/src/index-embed.ts +++ b/beakerx_widgets/js/src/index-embed.ts @@ -14,6 +14,9 @@ * limitations under the License. */ +window.beakerx = {}; +window.beakerxHolder = {}; + import './public-path'; import 'flatpickr/dist/flatpickr.css'; import 'jquery-ui/themes/base/all.css'; diff --git a/beakerx_widgets/js/src/jupyterlab-plugin.ts b/beakerx_widgets/js/src/jupyterlab-plugin.ts index 0b2d135..fb11f4e 100644 --- a/beakerx_widgets/js/src/jupyterlab-plugin.ts +++ b/beakerx_widgets/js/src/jupyterlab-plugin.ts @@ -14,6 +14,9 @@ * limitations under the License. */ +window.beakerx = {}; +window.beakerxHolder = {}; + import 'flatpickr/dist/flatpickr.css'; import 'jquery-ui/themes/base/all.css'; import 'jquery-ui.combobox/lib/jquery-ui.combobox.css'; diff --git a/beakerx_widgets/js/src/lab/plugin/index.ts b/beakerx_widgets/js/src/lab/plugin/index.ts index 3d9b70c..f987924 100644 --- a/beakerx_widgets/js/src/lab/plugin/index.ts +++ b/beakerx_widgets/js/src/lab/plugin/index.ts @@ -14,6 +14,9 @@ * limitations under the License. */ +window.beakerx = {}; +window.beakerxHolder = {}; + export * from './codeCells'; export * from './codeEditor'; export * from './comm'; diff --git a/beakerx_widgets/js/src/tree-extension.ts b/beakerx_widgets/js/src/tree-extension.ts index fee6f97..ae686e3 100644 --- a/beakerx_widgets/js/src/tree-extension.ts +++ b/beakerx_widgets/js/src/tree-extension.ts @@ -15,6 +15,9 @@ */ /* eslint-disable @typescript-eslint/no-explicit-any */ +window.beakerx = {}; +window.beakerxHolder = {}; + import './public-path'; import $ from 'jquery'; import { TreeWidget } from './tree';