mirror of
https://github.com/esphome/esp-web-tools.git
synced 2025-07-28 14:16:41 +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) {
|
||||
this.toggleAttribute("install-unsupported", true);
|
||||
this.renderRoot.innerHTML = !InstallButton.isSupported
|
||||
? "<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>";
|
||||
this.renderRoot.innerHTML = !InstallButton.isAllowed
|
||||
? "<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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user