plot:frame: fix null url

This commit is contained in:
jean-emmanuel 2019-04-07 20:42:04 +02:00
parent 6d76411b12
commit cfde80046f

View file

@ -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) {