Compare commits

..

No commits in common. "2dbdbb2441e66582e4b4a478b3dc2c8c60021f96" and "ab452d985c64d24b987b8c66e330a33f65ee1234" have entirely different histories.

2 changed files with 5 additions and 5 deletions

View File

@ -151,17 +151,17 @@ async function getApi(path,auth = false) {
log(`resp.status: ${resp.status}`) log(`resp.status: ${resp.status}`)
log(`resp.json: ${json}`) log(`resp.json: ${json}`)
if (resp.status != 200) { if (resp.status != 200) {
log(`lib.main: getApi: Response status: ${resp.status}`)
return resp.status return resp.status
} }
if (!resp.ok) { if (!resp.ok) {
log(`lib.main: getApi: Fetch error`)
return false return false
} }
if (json === "[]") {
return 'empty'
}
return json; return json;
} catch(err) { } catch(err) {
log(`lib.main: getApi: Caught fetch error. Status: ${resp.status}`) return false
return resp.status
} }
} }

View File

@ -71,7 +71,7 @@
<br><br><br> <br><br><br>
<label>Register for Rail Staff Version:</label> <label>Register for Rail Staff Version:</label>
<p id="reg_text">Enter your work email address:</p> <p id="reg_text">Enter your work email address:</p>
<input type="text" maxlength="128" id="eml" name="eml" autocomplete="email" class="lookup-box"><br> <input type="text" maxlength="128" id="eml" name="eml" autocomplete="email" class="lookup-box" placeholder="Not yet available"><br>
<p>One registration confirmation email will be sent which will include more details about your account</p> <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>Your address will not be stored</p>
<p>If your domain is not authorised and you are a using a railway company email address, <p>If your domain is not authorised and you are a using a railway company email address,