diff options
author | Blaster4385 <blaster4385@tablaster.dev> | 2024-04-30 11:13:55 +0530 |
---|---|---|
committer | Blaster4385 <blaster4385@tablaster.dev> | 2024-04-30 11:18:22 +0530 |
commit | 86c4719b540b96541c5369d24d574a027ba3e34b (patch) | |
tree | 56c92f4a63d6f2756f28a74202fca9f9945a06c6 /client/src/components/Editor/Editor.jsx | |
parent | 639f1748403dfb3a7c8cfc4f0dcca70bc4850473 (diff) |
feat: switched to backend based redirection
Diffstat (limited to 'client/src/components/Editor/Editor.jsx')
-rw-r--r-- | client/src/components/Editor/Editor.jsx | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/client/src/components/Editor/Editor.jsx b/client/src/components/Editor/Editor.jsx index 247d060..868036f 100644 --- a/client/src/components/Editor/Editor.jsx +++ b/client/src/components/Editor/Editor.jsx @@ -99,9 +99,6 @@ const Editor = () => { const isURL = URL_REGEX.test(data.content); if (isURL) { setText(`Your shortened URL: ${BASE_URL}/r/${id}`); - if (location.pathname === `/r/${id}`) { - window.location.href = data.content; - } } else { setLanguage(data.language); setText(data.content); |