|
|
@ -102,6 +102,7 @@ class App extends React.Component {
|
|
|
|
window.location.origin + "/publisher-ui-request-handler/user",
|
|
|
|
window.location.origin + "/publisher-ui-request-handler/user",
|
|
|
|
"platform=publisher"
|
|
|
|
"platform=publisher"
|
|
|
|
).then(res => {
|
|
|
|
).then(res => {
|
|
|
|
|
|
|
|
config.user = res.data.data;
|
|
|
|
const pageURL = window.location.pathname;
|
|
|
|
const pageURL = window.location.pathname;
|
|
|
|
const lastURLSegment = pageURL.substr(pageURL.lastIndexOf('/') + 1);
|
|
|
|
const lastURLSegment = pageURL.substr(pageURL.lastIndexOf('/') + 1);
|
|
|
|
if (lastURLSegment === "login") {
|
|
|
|
if (lastURLSegment === "login") {
|
|
|
|