Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mmalmi committed Mar 24, 2021
1 parent 9006933 commit 1a93307
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ app.get('/auth', async (req, res) => {

app.use(express.static('public'));

app.listen(INCOMING_HTTP_PORT);
app.listen(PORT);
6 changes: 5 additions & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
</head>

<body>
<div class="container">
<div id="container" style="display:none">
<h1>Iris sms auth</h1>

<form id="phone-number-form">
Expand Down Expand Up @@ -100,6 +100,10 @@ <h1>Iris sms auth</h1>
const urlParams = new URLSearchParams(window.location.search);
const pub = urlParams.get('pub');

if (pub) {
document.getElementById('container').style = '';
}

function displayError(error) {
console.error(error);
errorContainer.style = 'display:block;color:red';
Expand Down

0 comments on commit 1a93307

Please sign in to comment.