Skip to content

Commit

Permalink
Update plugin-card.component.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
mkz212 authored Nov 12, 2023
1 parent 7b010fe commit 73a3b3a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export class PluginCardComponent implements OnInit {
gt(this.$settings.env.homebridgeVersion, '1.5.0-beta.1') : false;

// detect mobile
this.detectMobile = (('ontouchstart' in document.documentElement) || (screen.width <= 768)) ? true : false;
this.detectMobile = (('ontouchstart' in document.documentElement) || (window.screen.width <= 768)) ? true : false;
}

@Input() set childBridges(childBridges: any[]) {
Expand Down

0 comments on commit 73a3b3a

Please sign in to comment.