mirror of
https://github.com/esphome/esp-web-tools.git
synced 2025-07-29 06:36:47 +00:00
Reverse guard for serial allowed (#19)
This commit is contained in:
parent
feaed1aed0
commit
bcdcac1eab
@ -84,9 +84,9 @@ export class InstallButton extends HTMLElement {
|
|||||||
|
|
||||||
if (!InstallButton.isSupported || !InstallButton.isAllowed) {
|
if (!InstallButton.isSupported || !InstallButton.isAllowed) {
|
||||||
this.toggleAttribute("install-unsupported", true);
|
this.toggleAttribute("install-unsupported", true);
|
||||||
this.renderRoot.innerHTML = !InstallButton.isSupported
|
this.renderRoot.innerHTML = !InstallButton.isAllowed
|
||||||
? "<slot name='unsupported'>Your browser does not support installing things on ESP devices. Use Google Chrome or Microsoft Edge.</slot>"
|
? "<slot name='not-allowed'>You can only install ESP devices on HTTPS websites or on the localhost.</slot>"
|
||||||
: "<slot name='not-allowed'>You can only install ESP devices on HTTPS websites or on the localhost.</slot>";
|
: "<slot name='unsupported'>Your browser does not support installing things on ESP devices. Use Google Chrome or Microsoft Edge.</slot>";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user