From 97f67cc272b68508abd2c5faa0977505ceb0c1cc Mon Sep 17 00:00:00 2001 From: spalger Date: Tue, 15 Sep 2020 19:04:27 -0700 Subject: [PATCH] improve support for domains which reject inline scripts --- ui/index.ejs | 5 +---- ui/index.js | 5 ++++- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ui/index.ejs b/ui/index.ejs index 2884b79c..30b501cf 100644 --- a/ui/index.ejs +++ b/ui/index.ejs @@ -9,10 +9,7 @@ Bull Dashboard -
Loading...
- +
Loading...
diff --git a/ui/index.js b/ui/index.js index 144fb47b..f1689965 100644 --- a/ui/index.js +++ b/ui/index.js @@ -4,4 +4,7 @@ import './index.css' import './xcode.css' import App from './components/App' -render(, document.getElementById('root')) +const root = document.getElementById('root'); +const basePath = root.dataset.basePath; + +render(, root)