From ba01510c885a80311c03473038fa515234cdb148 Mon Sep 17 00:00:00 2001 From: cutls Date: Sat, 8 Feb 2020 00:58:21 +0900 Subject: [PATCH] pwa: link --- app/js/platform/end.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/app/js/platform/end.js b/app/js/platform/end.js index f518cc98..e45c587b 100644 --- a/app/js/platform/end.js +++ b/app/js/platform/end.js @@ -46,10 +46,17 @@ $(document).on('click', 'a', e => { udgEx(url, 'main') return false } else { - postMessage(['openUrl', url], '*') + if(pwa) { + return true + } else { + postMessage(['openUrl', url], '*') + } } } } else { + if(pwa) { + return true + } //hrefがhttp/httpsならブラウザで if (urls) { if (urls[0]) { @@ -204,6 +211,7 @@ if(pwa) { showCloseButton: false, showCancelButton: true, focusConfirm: false, + confirmButtonText: 'Close' }) } }