From f3d7a97c23094bc9b24a5d205cdd981666a655bf Mon Sep 17 00:00:00 2001 From: yflory Date: Wed, 4 Dec 2019 17:34:28 +0100 Subject: [PATCH] Fix contacts app --- www/common/messenger-ui.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/common/messenger-ui.js b/www/common/messenger-ui.js index 4cbeaf56e..1979bae66 100644 --- a/www/common/messenger-ui.js +++ b/www/common/messenger-ui.js @@ -43,7 +43,7 @@ define([ MessengerUI.create = function ($container, common, toolbar) { var metadataMgr = common.getMetadataMgr(); var origin = metadataMgr.getPrivateData().origin; - var readOnly = metadataMgr.getPrivateData().readOnly || toolbar.readOnly; + var readOnly = metadataMgr.getPrivateData().readOnly || (toolbar && toolbar.readOnly); var isApp = typeof(toolbar) !== "undefined";