Safari 브라우저에서만 오류가 발생합니다. "TypeError : undefined is not an object (evaluating 'navigator.clipboard.writeText')". 현재 링크를 전달하고 있습니다. 무엇이 문제일까요?
copyLink = e => {
e.preventDefault();
console.log(document.location.href)
navigator.clipboard
.writeText(document.location.href)
.then(() => {
this.setState({
urlIsCopied: true
});
})
.catch(e => console.error(e));
};
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다