[mod] move spectre/meltdown check to diagnosis

This commit is contained in:
Laurent Peuch 2018-01-05 16:33:51 +01:00
parent ec4172a2d3
commit 58eb64bfae

View file

@ -71,8 +71,9 @@
c.flash('fail', y18n.t('error_retrieve_feed', [securityFeed])); c.flash('fail', y18n.t('error_retrieve_feed', [securityFeed]));
}); });
c.api("/meltdown-spectre-check", function(data) { c.api("/diagnosis", function(data) {
if (!data.safe) { console.log(data);
if (data.security["spectre-meltdown"]) {
c.flash('danger', y18n.t('meltdown_spectre')); c.flash('danger', y18n.t('meltdown_spectre'));
} }
}); });