Skip to content

Commit

Permalink
docs(keyboard-key): fix build issue
Browse files Browse the repository at this point in the history
  • Loading branch information
krisantrobus committed Nov 18, 2024
1 parent 11bc4b6 commit dd14333
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/paste-website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@
"@twilio-paste/in-page-navigation": "^4.3.1",
"@twilio-paste/inline-code": "^4.1.1",
"@twilio-paste/inline-control-group": "^13.0.2",
"@twilio-paste/keyboard-key": "^0.0.0",
"@twilio-paste/input": "^9.1.3",
"@twilio-paste/input-box": "^10.1.1",
"@twilio-paste/label": "^13.1.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { SiteSearch } from "../../site-search";
const SiteHeaderSearch: React.FC = () => {
const [isOpen, setIsOpen] = React.useState(false);
const { breakpointIndex } = useWindowSize();
const isMacOS = navigator.platform.toUpperCase().indexOf("MAC") >= 0;
const isMacOS = navigator.platform.toUpperCase().includes("MAC");
const platformTriggerKey = isMacOS ? "Meta" : "Control";

const onOpen = (): void => {
Expand Down

0 comments on commit dd14333

Please sign in to comment.