skip empty content
This commit is contained in:
parent
52c3b9ab1b
commit
2069df7469
|
|
@ -602,6 +602,8 @@ class Doodle extends HTMLElement {
|
|||
this.getAttribute('grid') || '1x1'
|
||||
);
|
||||
|
||||
if (!this.innerHTML.trim()) return false;
|
||||
|
||||
// clear content before throwing error
|
||||
try {
|
||||
compiled = compile(this.innerHTML, this.size);
|
||||
|
|
|
|||
|
|
@ -52,6 +52,8 @@ class Doodle extends HTMLElement {
|
|||
this.getAttribute('grid') || '1x1'
|
||||
);
|
||||
|
||||
if (!this.innerHTML.trim()) return false;
|
||||
|
||||
// clear content before throwing error
|
||||
try {
|
||||
compiled = compile(this.innerHTML, this.size);
|
||||
|
|
|
|||
Loading…
Reference in New Issue