Skip to content

Commit f56ad0c

Browse files
authored
Update index.html
1 parent 659815e commit f56ad0c

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

index.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1845,6 +1845,20 @@ <h3>Import Options</h3>
18451845
border:1px solid #000; box-shadow:3px 3px 0 #000;">
18461846
</div>
18471847
<script>
1848+
(function () {
1849+
var ua = navigator.userAgent || "";
1850+
var isIPhone = /iPhone|iPod/i.test(ua);
1851+
1852+
if (isIPhone) {
1853+
document.body.innerHTML = `
1854+
<div id="mobileWarning">
1855+
<h1>Desktop or iPad Only</h1>
1856+
<p>This app isn’t supported on iPhone. Please use an iPad or desktop.</p>
1857+
</div>`;
1858+
throw new Error("iPhone not supported");
1859+
}
1860+
})();
1861+
18481862
if (/Android|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
18491863
document.addEventListener("DOMContentLoaded", function() {
18501864
var warningDiv = document.createElement("div");

0 commit comments

Comments
 (0)