Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat:対応していない端末で開くと警告を表示する #95

Open
kiharu3112 opened this issue Jun 18, 2024 · 1 comment · May be fixed by #331
Open

feat:対応していない端末で開くと警告を表示する #95

kiharu3112 opened this issue Jun 18, 2024 · 1 comment · May be fixed by #331
Assignees

Comments

@kiharu3112
Copy link
Contributor

WebSerialAPIに対応していない端末のブラウザで開いたときに、機能しないよって警告を出したりする
具体的にはパソコンのchromiumベースのブラウザ以外。(モバイルのChromeなんかもだめ)
https://caniuse.com/?search=web%20serial%20api

@tufusa
Copy link
Member

tufusa commented Jun 18, 2024

👍

if (!("serial" in navigator)) {
  ~~~
}

で必要十分?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants