Skip to content
Snippets Groups Projects
Commit 18b29b2f authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Use the new console.term_supports() method.

While it's only been around for about 18 years, I'll assume that
anyone updating the exec directory has updated Synchronet as well.
parent d572f479
No related branches found
No related tags found
No related merge requests found
......@@ -362,11 +362,11 @@ Lightbar.prototype.draw = function(current)
if(current!=undefined)
this.current=current;
if(!(user.settings & USER_ANSI)) {
if(!console.term_supports(USER_ANSI)) {
alert("ANSI not supported!");
return;
}
if(!(user.settings & USER_COLOR)) {
if(!console.term_supports(USER_COLOR)) {
alert("Colour not supported!");
return;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment