From cfde80046f245e8d8530f0467a53f2a6932aad07 Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Sun, 7 Apr 2019 20:42:04 +0200 Subject: [PATCH] plot:frame: fix null url --- src/client/app/widgets/plots/frame.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/app/widgets/plots/frame.js b/src/client/app/widgets/plots/frame.js index 242ac719..5a96033b 100644 --- a/src/client/app/widgets/plots/frame.js +++ b/src/client/app/widgets/plots/frame.js @@ -48,7 +48,7 @@ class Frame extends Widget { var parser = document.createElement('a') parser.href = this.value - if (parser.hostname.match(localUrlRe)) { + if (this.value && parser.hostname.match(localUrlRe)) { this.frame.setAttribute('src', this.value) this.widget.classList.remove('error') if (this.errorTextMounted) {