summaryrefslogtreecommitdiff
path: root/src/scripts/splash.entry.ts
diff options
context:
space:
mode:
authorGeorgios Andreadis <g.andreadis@student.tudelft.nl>2017-04-03 09:20:59 +0200
committerGeorgios Andreadis <g.andreadis@student.tudelft.nl>2017-04-03 09:20:59 +0200
commit80c33f5303e2c083841933de4338f7e5d15de972 (patch)
treeaea30c99000290ae590591ecb614dc84e793cdf2 /src/scripts/splash.entry.ts
parentf7518a4d196ccf9e3ef16829d4129fbb44242726 (diff)
Factor out hardcoded SERVER_BASE_URL
Diffstat (limited to 'src/scripts/splash.entry.ts')
-rw-r--r--src/scripts/splash.entry.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/scripts/splash.entry.ts b/src/scripts/splash.entry.ts
index 700f52bb..6abd9518 100644
--- a/src/scripts/splash.entry.ts
+++ b/src/scripts/splash.entry.ts
@@ -119,7 +119,7 @@ window["renderButton"] = () => {
// Calculate token expiration time (in seconds since epoch)
const expirationTime = (new Date()).getTime() / 1000 + googleUser.getAuthResponse().expires_in - 5;
- $.post('https://opendc.ewi.tudelft.nl/tokensignin', {
+ $.post('SERVER_BASE_URL/tokensignin', {
idtoken: id_token
}, (data: any) => {
// Save user information in session storage for later use on other pages
@@ -146,7 +146,7 @@ window["renderButton"] = () => {
});
},
'onfailure': () => {
- console.log("Oops, something went wrong with your Google signin... Try again?")
+ console.log("Oops, something went wrong with your Google signin... Try again?");
}
});
};