diff --git a/lnbits/extensions/copilot/templates/copilot/compose.html b/lnbits/extensions/copilot/templates/copilot/compose.html
index def19107a..2bf9546a9 100644
--- a/lnbits/extensions/copilot/templates/copilot/compose.html
+++ b/lnbits/extensions/copilot/templates/copilot/compose.html
@@ -2,8 +2,9 @@
+
{% endblock %} {% block scripts %}
@@ -85,7 +92,7 @@
this.connection.addEventListener('message', function (event) {
res = event.data.split('-')
-
+ console.log(res[1])
if (res[0] != this.oldRes) {
this.oldRes = res[0]
if (res[1] == 'animation1') {
@@ -113,11 +120,14 @@
}, 5000)
}
if (res[1] == 'true') {
- document.getElementById('videoElement').style.width = '10%'
+ document.getElementById('videoElement').style.width = '20%'
}
if (res[1] == 'false') {
document.getElementById('videoElement').style.width = '100%'
}
+ if (res[1].substring(0, 3) == 'htt') {
+ document.getElementById('iframe_main').src = res[1]
+ }
}
})
diff --git a/lnbits/extensions/copilot/templates/copilot/panel.html b/lnbits/extensions/copilot/templates/copilot/panel.html
index 07a03852e..a2607eedb 100644
--- a/lnbits/extensions/copilot/templates/copilot/panel.html
+++ b/lnbits/extensions/copilot/templates/copilot/panel.html
@@ -23,12 +23,11 @@
-
@@ -41,7 +40,13 @@
label="iframe url"
>
-
+
@@ -49,6 +54,7 @@