diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2020-06-16 16:19:11 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2020-06-16 16:19:11 +0200 |
commit | 1edbb7daaf5fc3b40eec0977eebbe371fea5f244 (patch) | |
tree | 65b5712de8d84b6209944d0e3c7bd6ab99f76509 /src | |
parent | dd55626317d191b6528fe1b8f1d8d267157df748 (diff) |
Fix missing title resulting in 'undefined' text in editor.
Diffstat (limited to 'src')
-rw-r--r-- | src/ws/node.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ws/node.js b/src/ws/node.js index 4c63496..2dc5608 100644 --- a/src/ws/node.js +++ b/src/ws/node.js @@ -351,7 +351,11 @@ Node.prototype.setAttribute = function(name, value) Node.prototype.getTitle = function() { - return this.attributes["title"]; + if(this.attributes["title"]) + { + return this.attributes["title"]; + } + return ""; }; Node.prototype.getDescription = function() |