Skip to content

Commit

Permalink
avoiding ssr issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Cesar Faber authored and Cesar Faber committed Feb 1, 2024
1 parent 25f3686 commit 2ae1863
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Shortcut/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import * as React from "react";
import "./index.scss";

const Shortcut = ({ text }) => {
const isMac = window !== "undefined" ? !!navigator?.platform?.indexOf("Mac") > -1 : true;
const isMac = typeof window !== "undefined" ? !!navigator?.platform?.indexOf("Mac") > -1 : true;

return (
<div className="shortcut">
Expand Down

0 comments on commit 2ae1863

Please sign in to comment.