Compare commits
2 Commits
ab452d985c
...
2dbdbb2441
Author | SHA1 | Date |
---|---|---|
Fred Boniface | 2dbdbb2441 | |
Fred Boniface | 1d365ea374 |
|
@ -151,17 +151,17 @@ async function getApi(path,auth = false) {
|
|||
log(`resp.status: ${resp.status}`)
|
||||
log(`resp.json: ${json}`)
|
||||
if (resp.status != 200) {
|
||||
log(`lib.main: getApi: Response status: ${resp.status}`)
|
||||
return resp.status
|
||||
}
|
||||
if (!resp.ok) {
|
||||
log(`lib.main: getApi: Fetch error`)
|
||||
return false
|
||||
}
|
||||
if (json === "[]") {
|
||||
return 'empty'
|
||||
}
|
||||
return json;
|
||||
} catch(err) {
|
||||
return false
|
||||
log(`lib.main: getApi: Caught fetch error. Status: ${resp.status}`)
|
||||
return resp.status
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -71,7 +71,7 @@
|
|||
<br><br><br>
|
||||
<label>Register for Rail Staff Version:</label>
|
||||
<p id="reg_text">Enter your work email address:</p>
|
||||
<input type="text" maxlength="128" id="eml" name="eml" autocomplete="email" class="lookup-box" placeholder="Not yet available"><br>
|
||||
<input type="text" maxlength="128" id="eml" name="eml" autocomplete="email" class="lookup-box"><br>
|
||||
<p>One registration confirmation email will be sent which will include more details about your account</p>
|
||||
<p>Your address will not be stored</p>
|
||||
<p>If your domain is not authorised and you are a using a railway company email address,
|
||||
|
|
Reference in New Issue