From 242dd9de48c0caeaa2b1efd992c8f85e2e16639e Mon Sep 17 00:00:00 2001 From: yann300 Date: Thu, 18 Oct 2018 14:38:52 +0200 Subject: [PATCH] add url to iframe view --- src/app/panels/righthand-panel.js | 2 +- src/app/ui/draggableContent.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/panels/righthand-panel.js b/src/app/panels/righthand-panel.js index 0be20ce6f8..a6cdc458fc 100644 --- a/src/app/panels/righthand-panel.js +++ b/src/app/panels/righthand-panel.js @@ -83,7 +83,7 @@ module.exports = class RighthandPanel { }) var tab = new PluginTab(json) var content = tab.render() - document.querySelector('body').appendChild(modal.render(json.title, content)) + document.querySelector('body').appendChild(modal.render(json.title, json.url, content)) self._components.pluginManager.register(json, modal, content) } diff --git a/src/app/ui/draggableContent.js b/src/app/ui/draggableContent.js index c18b47f7b6..c341117843 100644 --- a/src/app/ui/draggableContent.js +++ b/src/app/ui/draggableContent.js @@ -43,12 +43,12 @@ module.exports = this.closeCb = closeCb } - render (title, content) { + render (title, url, content) { this.content = content var el = yo`
-
${title} +
${title} - ${url}
{ this.minimize() }} class="fa fa-window-minimize ${css.modalAction}"> { this.maximise() }} class="fa fa-window-maximize ${css.modalAction}">