diff --git a/views/default.handlebars b/views/default.handlebars index f4ee842c..d3bf6a33 100644 --- a/views/default.handlebars +++ b/views/default.handlebars @@ -1337,6 +1337,15 @@ var p12TermConsoleMsgTimer = null; var p13FilesConsoleMsgTimer = null; + /* + // Check browser dark mode preference + var prefersDarkScheme = window.matchMedia('(prefers-color-scheme: dark)').matches; + var prefersLightScheme = window.matchMedia('(prefers-color-scheme: light)').matches; + console.log(prefersDarkScheme, prefersLightScheme); + var mql = window.matchMedia('(prefers-color-scheme: dark)'); + mql.addEventListener('change', function() { console.log('Dark Change'); }); + */ + function startup() { if ((features & 32) == 0) { // Guard against other site's top frames (web bugs). @@ -13541,7 +13550,7 @@ function clearServerTracing() { serverTrace = []; displayServerTrace(); } function setServerTracing() { - var x = ''; + var x = '
'; x += '
' + "Core Server" + '
'; x += '
'; x += '
'; @@ -13558,18 +13567,20 @@ x += '
'; //x += '
'; x += '
' + "Intel® AMT" + '
'; + x += '
'; x += '
'; x += '
'; x += '
'; //x += '
Legacy
'; //x += '
"; //x += '
"; + x += '
'; setDialogMode(2, "Server Tracing", 7, setServerTracingEx, x); } function setServerTracingEx(b) { - var sources = [], allsources = ['cookie', 'dispatch', 'main', 'peer', 'web', 'webrequest', 'relay', 'webrelaydata', 'webrelay', 'mps', 'mpscmd', 'swarm', 'swarmcmd', 'agentupdate', 'agent', 'cert', 'db', 'email']; - if (b == 1) { for (var i = 1; i < 19; i++) { try { if (Q('p41c' + i).checked) { sources.push(allsources[i - 1]); } } catch (ex) { } } } + var sources = [], allsources = ['cookie', 'dispatch', 'main', 'peer', 'web', 'webrequest', 'relay', 'webrelaydata', 'webrelay', 'mps', 'mpscmd', 'swarm', 'swarmcmd', 'agentupdate', 'agent', 'cert', 'db', 'email', 'amt']; + if (b == 1) { for (var i = 1; i < 20; i++) { try { if (Q('p41c' + i).checked) { sources.push(allsources[i - 1]); } } catch (ex) { } } } meshserver.send({ action: 'traceinfo', traceSources: sources }); }