From 92805463b49d4fd2c73020c27c0a490d8f755295 Mon Sep 17 00:00:00 2001 From: jackyzha0 Date: Mon, 25 May 2020 22:19:47 -0700 Subject: use origin instead --- frontend/src/components/modals/PasteModal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/modals/PasteModal.js b/frontend/src/components/modals/PasteModal.js index eeff91b..243cdcd 100644 --- a/frontend/src/components/modals/PasteModal.js +++ b/frontend/src/components/modals/PasteModal.js @@ -18,7 +18,7 @@ const modalStyles = { const PasteModal = (props) => { const history = useHistory(); - const fullURL = `https://ctrl-v.app${props.hash}`; + const fullURL = `${window.location.origin}${props.hash}`; const clipboard = useClipboard({ copiedTimeout: 3000 }); Modal.setAppElement('body'); -- cgit v1.2.3