diff options
| author | jackyzha0 <[email protected]> | 2020-05-25 22:19:47 -0700 |
|---|---|---|
| committer | jackyzha0 <[email protected]> | 2020-05-25 22:19:47 -0700 |
| commit | 92805463b49d4fd2c73020c27c0a490d8f755295 (patch) | |
| tree | 6e72f7c42ae9e9a2c41540f4ed3a80e9040d9cc7 /frontend/src/components | |
| parent | fix bad fb redirect (diff) | |
| download | ctrl-v-92805463b49d4fd2c73020c27c0a490d8f755295.tar.xz ctrl-v-92805463b49d4fd2c73020c27c0a490d8f755295.zip | |
use origin instead
Diffstat (limited to 'frontend/src/components')
| -rw-r--r-- | frontend/src/components/modals/PasteModal.js | 2 |
1 files changed, 1 insertions, 1 deletions
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'); |