title: Safari clipboard error "TypeError: undefined is not an object"
body: <p>Have an error only in safari browser " TypeError: undefined is not an object (evaluating 'navigator.clipboard.writeText')" . I'm passing my current link . What could be the problem? </p>
  
  <pre><code> copyLink = e =&gt; {
      e.preventDefault();
      console.log(document.location.href)
      navigator.clipboard
        .writeText(document.location.href)
        .then(() =&gt; {
          this.setState({
            urlIsCopied: true
          });
        })
        .catch(e =&gt; console.error(e));
    };
  </code></pre>