From 1edbb7daaf5fc3b40eec0977eebbe371fea5f244 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Tue, 16 Jun 2020 16:19:11 +0200 Subject: Fix missing title resulting in 'undefined' text in editor. --- src/ws/node.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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() -- cgit v1.2.3