Set an "error" class instead of hardcoding a text color.

This commit is contained in:
David Fifield 2019-07-22 22:54:01 -06:00
parent 8a56baa8e1
commit 8f885c7557
4 changed files with 19 additions and 5 deletions

View file

@ -11,7 +11,7 @@ port.onMessage.addListener((m) => {
if (missingFeature) {
popup.setImgSrc('off');
popup.setStatusText("Snowflake is off");
popup.setStatusDesc("WebRTC feature is not detected.", 'firebrick');
popup.setStatusDesc("WebRTC feature is not detected.", true);
popup.hideButton();
return;
}