summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSunil Shetye2025-04-23 16:59:39 +0530
committerSunil Shetye2025-04-23 23:03:02 +0530
commit55286698dd08f5d5ea48abb7a852b28d83462e7e (patch)
tree5c3e81ed540d707473a82beedc0a48891c260099
parent57b4110a31edcfbd650eb145242628c8c657c319 (diff)
downloadCommon-Interface-Project-55286698dd08f5d5ea48abb7a852b28d83462e7e.tar.gz
Common-Interface-Project-55286698dd08f5d5ea48abb7a852b28d83462e7e.tar.bz2
Common-Interface-Project-55286698dd08f5d5ea48abb7a852b28d83462e7e.zip
replace ${window.location.protocol}\\${window.location.host} with ${window.location.origin}
-rw-r--r--blocks/eda-frontend/src/components/SchematicEditor/Header.js2
-rw-r--r--blocks/eda-frontend/src/pages/Login.js2
-rw-r--r--blocks/eda-frontend/src/pages/signUp.js2
3 files changed, 3 insertions, 3 deletions
diff --git a/blocks/eda-frontend/src/components/SchematicEditor/Header.js b/blocks/eda-frontend/src/components/SchematicEditor/Header.js
index 857cbc6e..654a3371 100644
--- a/blocks/eda-frontend/src/components/SchematicEditor/Header.js
+++ b/blocks/eda-frontend/src/components/SchematicEditor/Header.js
@@ -262,7 +262,7 @@ function Header () {
{shared === true
? <input
ref={textAreaRef}
- value={`${window.location.protocol}\\\\${window.location.host}/eda/#/editor?id=${details.save_id}`}
+ value={`${window.location.origin}/#/editor?id=${details.save_id}`}
readOnly
/>
: <> Turn On sharing </>}
diff --git a/blocks/eda-frontend/src/pages/Login.js b/blocks/eda-frontend/src/pages/Login.js
index f2f8c4cb..ed1ae8c3 100644
--- a/blocks/eda-frontend/src/pages/Login.js
+++ b/blocks/eda-frontend/src/pages/Login.js
@@ -54,7 +54,7 @@ export default function SignIn (props) {
const errors = useSelector(state => state.auth.errors)
const dispatch = useDispatch()
- const homeURL = `${window.location.protocol}\\\\${window.location.host}/`
+ const homeURL = `${window.location.origin}/#/`
useEffect(() => {
document.title = 'Login - ' + process.env.REACT_APP_NAME
diff --git a/blocks/eda-frontend/src/pages/signUp.js b/blocks/eda-frontend/src/pages/signUp.js
index 17e1ecef..27014cff 100644
--- a/blocks/eda-frontend/src/pages/signUp.js
+++ b/blocks/eda-frontend/src/pages/signUp.js
@@ -52,7 +52,7 @@ export default function SignUp () {
const regErrors = useSelector(state => state.auth.regErrors)
const dispatch = useDispatch()
- const homeURL = `${window.location.protocol}\\\\${window.location.host}/`
+ const homeURL = `${window.location.origin}/#/`
useEffect(() => {
document.title = 'Sign Up - ' + process.env.REACT_APP_NAME