09-15-2022, 12:15 AM
If it could be made to only load when chromium-browser is detected (which indicates locally attached display) then much better.
There is a code block early in scripts-panels.js that does chromium detection.
There is a code block early in scripts-panels.js that does chromium detection.
Code:
// CoverView auto-display
var userAgent = navigator.userAgent;
if (userAgent.indexOf('X11; CrOS armv') != -1 || userAgent.indexOf('X11; CrOS aarch64') != -1) {
GLOBAL.chromium = true;
} else {
GLOBAL.chromium = false;
}