Skip to content

Commit

Permalink
Update api domain console domain url (#152)
Browse files Browse the repository at this point in the history
Signed-off-by: SayedTahsin <mail.tahsin99@gmail.com>
  • Loading branch information
SayedTahsin authored Jul 9, 2024
1 parent e1541c9 commit d25f508
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions layouts/_default/embed_console.html
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,12 @@

if(hostname==='appscode.ninja')
acSignInButton.setAttribute('href', 'https://appscode.ninja/accounts/user/login');
else if(hostname==='localhost')
acSignInButton.setAttribute('href', 'http://bb.test:3003/accounts/user/login');
else
acSignInButton.setAttribute('href', 'https://appscode.com/accounts/user/login');


const urlParams = new URLSearchParams(window.location.search);
const color = urlParams.get('color');
const text = urlParams.get('text');
Expand Down Expand Up @@ -143,8 +146,8 @@
const protocol = window.location.protocol;
const port = window.location.port;

const apiDomain = protocol + "//api." + hostname + (port? ":3003" : "");
const consoleDomain = protocol + "//console." + hostname + (port? ":5990" : "");
const apiDomain = protocol + "//" + hostname + (port? ":3003" : "") + '/api';
const consoleDomain = protocol + "//" + hostname + (port? ":5990" : "") + '/console';

acSignInButton.classList.add('is-loading');

Expand Down

0 comments on commit d25f508

Please sign in to comment.