Skip to content

Commit

Permalink
Reverse guard for bluetooth allowed (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
balloob committed Jun 15, 2021
1 parent 7fc6789 commit ebc8cdb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions src/launch-button.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ export class LaunchButton extends HTMLElement {

if (!LaunchButton.isSupported || !LaunchButton.isAllowed) {
this.toggleAttribute("not-supported", true);
this.renderRoot.innerHTML = !LaunchButton.isSupported
? "<slot name='unsupported'>Your browser does not support bluetooth provisioning. Use Google Chrome or Microsoft Edge.</slot>"
: "<slot name='not-allowed'>You can only use Improv on HTTPS sites or localhost.</slot>";
this.renderRoot.innerHTML = !LaunchButton.isAllowed
? "<slot name='not-allowed'>You can only use Improv on HTTPS sites or localhost.</slot>"
: "<slot name='unsupported'>Your browser does not support bluetooth provisioning. Use Google Chrome or Microsoft Edge.</slot>";
return;
}

Expand Down

0 comments on commit ebc8cdb

Please sign in to comment.