From 459e7cb523a8bfd350ae70b0270a83df32996305 Mon Sep 17 00:00:00 2001 From: Ben Arc Date: Tue, 20 Apr 2021 14:53:52 +0100 Subject: [PATCH] fixed ls --- lnbits/extensions/copilot/templates/copilot/index.html | 6 +----- lnbits/extensions/copilot/templates/copilot/panel.html | 4 +++- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/lnbits/extensions/copilot/templates/copilot/index.html b/lnbits/extensions/copilot/templates/copilot/index.html index 0e431820..0433b25e 100644 --- a/lnbits/extensions/copilot/templates/copilot/index.html +++ b/lnbits/extensions/copilot/templates/copilot/index.html @@ -505,7 +505,7 @@ this.g.user.wallets[0].inkey ) .then(function (response) { - self.passedCopilot = response.data + localStorage.setItem('copilot', JSON.stringify(response.data)) }) .catch(function (error) { LNbits.utils.notifyApiError(error) @@ -513,16 +513,12 @@ }, openCopilotCompose: function (copilot_id) { this.getCopilot(copilot_id) - console.log(JSON.stringify(this.passedCopilot)) - localStorage.setItem('copilot', JSON.stringify(this.passedCopilot)) let params = 'scrollbars=no, resizable=no,status=no,location=no,toolbar=no,menubar=no,width=1722,height=972,left=200,top=200' open('../copilot/cp/', 'test', params) }, openCopilotPanel: function (copilot_id) { this.getCopilot(copilot_id) - console.log(JSON.stringify(this.passedCopilot)) - localStorage.setItem('copilot', JSON.stringify(this.passedCopilot)) let params = 'scrollbars=no, resizable=no,status=no,location=no,toolbar=no,menubar=no,width=1722,height=972,left=200,top=200' open('../copilot/pn/', 'test', params) diff --git a/lnbits/extensions/copilot/templates/copilot/panel.html b/lnbits/extensions/copilot/templates/copilot/panel.html index 61e7b9a0..5b573741 100644 --- a/lnbits/extensions/copilot/templates/copilot/panel.html +++ b/lnbits/extensions/copilot/templates/copilot/panel.html @@ -15,7 +15,9 @@
-
Title:
+
+ Title: {% raw %} {{ copilot.title }} {% endraw %} +