From bcdcac1eab9f07d9b1e3099fa59ddfb667229516 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Tue, 15 Jun 2021 13:34:24 -0700 Subject: [PATCH] Reverse guard for serial allowed (#19) --- src/install-button.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/install-button.ts b/src/install-button.ts index 595e713..ef7ca21 100644 --- a/src/install-button.ts +++ b/src/install-button.ts @@ -84,9 +84,9 @@ export class InstallButton extends HTMLElement { if (!InstallButton.isSupported || !InstallButton.isAllowed) { this.toggleAttribute("install-unsupported", true); - this.renderRoot.innerHTML = !InstallButton.isSupported - ? "Your browser does not support installing things on ESP devices. Use Google Chrome or Microsoft Edge." - : "You can only install ESP devices on HTTPS websites or on the localhost."; + this.renderRoot.innerHTML = !InstallButton.isAllowed + ? "You can only install ESP devices on HTTPS websites or on the localhost." + : "Your browser does not support installing things on ESP devices. Use Google Chrome or Microsoft Edge."; return; }