From 6cbf2bbada2fe47b203764ca68b9ba84007947b4 Mon Sep 17 00:00:00 2001 From: kuaifan Date: Wed, 17 Apr 2024 10:21:35 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=B8=8B=E8=BD=BDpdf=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=E8=87=AA=E5=B8=A6=E6=B5=8F=E8=A7=88=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/mobile | 2 +- resources/views/download.blade.php | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/resources/mobile b/resources/mobile index 5ffa32bc9..482bb977d 160000 --- a/resources/mobile +++ b/resources/mobile @@ -1 +1 @@ -Subproject commit 5ffa32bc9e7ef9f710beba2ae964f5f7d112aa8f +Subproject commit 482bb977d14d3baaed342ef282811402f14e88de diff --git a/resources/views/download.blade.php b/resources/views/download.blade.php index f51cac637..fa402f9ca 100755 --- a/resources/views/download.blade.php +++ b/resources/views/download.blade.php @@ -73,6 +73,22 @@ if (themeConf === 'dark') { document.body.classList.add("dark"); } + // + const isEEUiApp = window && window.navigator && /eeui/i.test(window.navigator.userAgent); + if (isEEUiApp) { + document.querySelector(".link").addEventListener('click', function (e) { + e.preventDefault(); + window.top.postMessage({ + action: "eeuiAppSendMessage", + data: [ + { + action: 'openUrl', + url: "{{ $url }}", + } + ] + }, "*") + }); + }