diff --git a/assets/webio/dist/bundle.js b/assets/webio/dist/bundle.js
index 54be4d5a..d30e643a 100644
--- a/assets/webio/dist/bundle.js
+++ b/assets/webio/dist/bundle.js
@@ -3030,7 +3030,13 @@ module.exports = isArray || function (val) {
if (!webComponentsSupported) {
var script = document.createElement('script');
script.async = true;
- script.src = '/pkg/WebIO/webio/dist/webcomponents-lite.min.js';
+
+ if ( document.getElementsByTagName("base").length === 0 ) {
+ script.src = '/pkg/WebIO/webio/dist/webcomponents-lite.min.js';
+ } else {
+ script.src = 'pkg/WebIO/webio/dist/webcomponents-lite.min.js';
+ }
+
document.head.appendChild(script);
document.addEventListener("WebComponentsReady", function () {
if (customElements.get("unsafe-script") === undefined) {
diff --git a/assets/webio/unsafe_script.js b/assets/webio/unsafe_script.js
index 3cb7a89d..e9e77880 100644
--- a/assets/webio/unsafe_script.js
+++ b/assets/webio/unsafe_script.js
@@ -26,7 +26,13 @@
if (!webComponentsSupported) {
var script = document.createElement('script');
script.async = true;
- script.src = '/pkg/WebIO/webio/dist/webcomponents-lite.min.js';
+
+ if ( document.getElementsByTagName("base").length === 0 ) {
+ script.src = '/pkg/WebIO/webio/dist/webcomponents-lite.min.js';
+ } else {
+ script.src = 'pkg/WebIO/webio/dist/webcomponents-lite.min.js';
+ }
+
document.head.appendChild(script);
document.addEventListener("WebComponentsReady", function () {
if (customElements.get("unsafe-script") === undefined) {
diff --git a/src/providers/ijulia_setup.jl b/src/providers/ijulia_setup.jl
index aa8e7c5f..90579509 100644
--- a/src/providers/ijulia_setup.jl
+++ b/src/providers/ijulia_setup.jl
@@ -16,8 +16,30 @@ function WebIO.register_renderable(T::Type)
end
function main()
- display(HTML(""))
- display(HTML(""))
+ display(HTML("""
+
+ """))
+
+ display(HTML(""))
+ display(HTML(""))
+
+ display(HTML("""
+
+ """))
comm = Comm(:webio_comm)
conn = IJuliaConnection(comm)
@@ -25,6 +47,7 @@ function main()
data = msg.content["data"]
WebIO.dispatch(conn, data)
end
+
nothing
end