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

Allow webSerial via trusted http hosts #140

Merged
merged 1 commit into from
Nov 30, 2021
Merged

Conversation

jesserockz
Copy link
Member

No description provided.

@@ -2,8 +2,6 @@ import { CHIP_FAMILY_ESP32, CHIP_FAMILY_ESP8266 } from "esp-web-flasher";
import { svg } from "lit";

export const supportsWebSerial = "serial" in navigator;
export const allowsWebSerial =
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not the right approach. Check for secure context instead like this https://github.com/esphome/esp-web-tools/blob/main/src/install-button.ts#L4-L6

@balloob balloob merged commit 1853d91 into main Nov 30, 2021
@balloob balloob deleted the webserial-via-trusted-http branch November 30, 2021 22:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants