From ec686a3d5f415932a0d9e5ab804dd1ca89ad8598 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Fri, 6 Dec 2019 09:46:42 +0200 Subject: [PATCH] Don't show a link for the product name in Help>About on iOS The app's WKWebView is not configured to allow opening web pages, so it won't work anyway. When clicking the link the app will crash with "Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Returned WKWebView was not created with the given configuration.'" Change-Id: Iac05b74087331d6f3a0405e76f4323316af4729a Reviewed-on: https://gerrit.libreoffice.org/84595 Reviewed-by: Tor Lillqvist Tested-by: Tor Lillqvist --- loleaflet/src/control/Toolbar.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/loleaflet/src/control/Toolbar.js b/loleaflet/src/control/Toolbar.js index 65a74ecef..e2289a748 100644 --- a/loleaflet/src/control/Toolbar.js +++ b/loleaflet/src/control/Toolbar.js @@ -361,8 +361,12 @@ L.Map.include({ var productURL = (typeof brandProductURL !== 'undefined') ? brandProductURL : 'https://libreoffice.org'; content.find('#product-name').text(productName); var productString = _('This version of %productName is powered by'); - var productNameWithURL = '' + productName + ''; + else + productNameWithURL = productName; content.find('#product-string').html(productString.replace('%productName', productNameWithURL)); var w;