Skip to content

Commit c877235

Browse files
committed
refactor: Remove unused meta viewport tag in index.html and add check for Web Share API support in index.ts
1 parent 6e72275 commit c877235

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

index.html

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
<head>
44
<title>Map on photo - add map thumbnail to your photo!</title>
55
<meta charset="utf-8" />
6-
<meta name="viewport" content="width=device-width, initial-scale=1 minimum-scale=0.2 maximum-scale=1 user-scalable=1" />
76
<meta name="author" content="Slavo" />
87
<meta name="theme-color" content="#2c3e50">
98
<meta name="description"

src/scripts/index.ts

+4
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ window.addEventListener("load", () => {
3737
}
3838
});
3939

40+
if (!navigator.canShare()) {
41+
warn("Web Share API not supported :(");
42+
}
43+
4044
browser = new PhotoBrowser($elements.get("browser") as HTMLInputElement);
4145
downloadManager = new DownloadManager(
4246
$elements.get("download") as HTMLLinkElement,

0 commit comments

Comments
 (0)