diff --git a/www/pad/main.js b/www/pad/main.js index 217423f28..c4747e767 100644 --- a/www/pad/main.js +++ b/www/pad/main.js @@ -426,6 +426,7 @@ define([ var updateMetadata = function(shjson) { // Extract the user list (metadata) from the hyperjson + if (!shjson || typeof (shjson) !== "string") { updateTitle(defaultName); return; } var hjson = JSON.parse(shjson); var peerMetadata = hjson[3]; var titleUpdated = false;