Skip to content

Commit be010f8

Browse files
committed
refactor: In case of missing share API, always display the message
1 parent c877235 commit be010f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/scripts/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ window.addEventListener("load", () => {
3838
});
3939

4040
if (!navigator.canShare()) {
41-
warn("Web Share API not supported :(");
41+
console.log("Web Share API not supported :(");
4242
}
4343

4444
browser = new PhotoBrowser($elements.get("browser") as HTMLInputElement);

0 commit comments

Comments
 (0)