diff --git a/client/src/App.js b/client/src/App.js
index 974e1254caa7fc0bb3ac783810d21948af792384..84b9e7ed92f9874f253dd951f59100c372cfcd88 100644
--- a/client/src/App.js
+++ b/client/src/App.js
@@ -12,7 +12,7 @@ import GetLocFirst from './pages/GetLocFirst';
function App() {
-
+
const isLs = localStorage.getItem('login')
function loginDefault() {
@@ -29,7 +29,7 @@ function App() {
-
+
diff --git a/client/src/components/LoginComp.js b/client/src/components/LoginComp.js
index 5e2e9305ca6ccf7767d53eb5ac3f4350c4f4124f..4b0b7e717607eec914581b09c2799d22e2795f29 100644
--- a/client/src/components/LoginComp.js
+++ b/client/src/components/LoginComp.js
@@ -36,15 +36,12 @@ function LoginComp() {
function addressUrl() {
const afterAt = emailAddress.split('@')[1]
- if (afterAt == ('naver.com' || 'gmail.com' || 'daum.net')) {
+ if (afterAt) {
const newLink = 'https://www.' + afterAt;
- window.open(newLink);
+ window.location.replace(newLink);
}
- if (afterAt == 'korea.ac.kr') {
- window.open('https://www.gmail.com');
- }
- else {
- window.open();
+ else if (afterAt == 'korea.ac.kr') {
+ window.location.replace('https://www.gmail.com');
}
}
@@ -97,7 +94,7 @@ function LoginComp() {