plot:frame: fix null url
This commit is contained in:
parent
633cb4ae68
commit
212ba330e8
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue