mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-03-12 10:30:47 +01:00
Show boltcard deeplink also on iOS
This commit is contained in:
parent
d2a04db49f
commit
900c5f7976
1 changed files with 2 additions and 2 deletions
|
@ -230,8 +230,8 @@
|
||||||
<script src="~/vendor/ur-registry/urlib.min.js" asp-append-version="true"></script>
|
<script src="~/vendor/ur-registry/urlib.min.js" asp-append-version="true"></script>
|
||||||
<script>
|
<script>
|
||||||
document.addEventListener("DOMContentLoaded", () => {
|
document.addEventListener("DOMContentLoaded", () => {
|
||||||
const isAndroid = /(android)/i.test(navigator.userAgent);
|
var isMobile = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
|
||||||
if (isAndroid) {
|
if (isMobile) {
|
||||||
document.getElementById("SetupBoltcard").setAttribute('target', '_blank');
|
document.getElementById("SetupBoltcard").setAttribute('target', '_blank');
|
||||||
document.getElementById("SetupBoltcard").setAttribute('href', @Safe.Json(Model.SetupDeepLink));
|
document.getElementById("SetupBoltcard").setAttribute('href', @Safe.Json(Model.SetupDeepLink));
|
||||||
document.getElementById("ResetBoltcard").setAttribute('target', '_blank');
|
document.getElementById("ResetBoltcard").setAttribute('target', '_blank');
|
||||||
|
|
Loading…
Add table
Reference in a new issue