Fix templating errors, js errors

This commit is contained in:
= 2019-09-14 04:38:14 -05:00
parent 92c8eef214
commit 8d42d46d74
Signed by: kiichan
GPG key ID: 619DFD67F0976616
8 changed files with 93 additions and 52 deletions

View file

@ -0,0 +1,19 @@
.sqrl-parent {
padding: 15px;
background-color: #fff;
text-align: center;
max-width: 300px;
border-radius: 5%;
}
#sqrl-qr img {
margin: auto;
width: 100%;
padding-top: 3px;
}
.sqrl-wrap a {
font-size: 50%;
}
.sqrl-form input {
margin: auto;
}

View file

@ -2,8 +2,10 @@
var get_next_url = function() {
// A Next defined in the URL has priority
var urlparam = document.URL.match(/next=([^&#]+)/)
if (urlparam.length == 2) {
return urlparam[1]
if (urlparam) {
if (urlparam.length == 2) {
return urlparam[1]
}
}
// Next highest priority is a defined SQRL_NEXT
if (typeof SQRL_NEXT !== "undefined") {