Don't try to use webcrypto if not https
This commit is contained in:
parent
b40bd2ed25
commit
c5a452933a
@ -327,14 +327,14 @@ async function onHashChanged() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (window.location.protocol != "https:") {
|
||||||
|
$("#view-dashboard").html(env.render('views/insecure.html', {authority:authority}));
|
||||||
|
} else {
|
||||||
// Device identifier
|
// Device identifier
|
||||||
var dig = await blobToUuid(window.navigator.userAgent);
|
var dig = await blobToUuid(window.navigator.userAgent);
|
||||||
window.common_name = prefix + "-" + dig.substring(0, 5);
|
window.common_name = prefix + "-" + dig.substring(0, 5);
|
||||||
console.info("Device identifier:", common_name);
|
console.info("Device identifier:", common_name);
|
||||||
|
|
||||||
if (window.location.protocol != "https:") {
|
|
||||||
$("#view-dashboard").html(env.render('views/insecure.html', {authority:authority}));
|
|
||||||
} else {
|
|
||||||
if (query.action == "enroll") {
|
if (query.action == "enroll") {
|
||||||
$("#view-dashboard").html(env.render('views/enroll.html', {
|
$("#view-dashboard").html(env.render('views/enroll.html', {
|
||||||
common_name: common_name,
|
common_name: common_name,
|
||||||
|
Loading…
Reference in New Issue
Block a user