Skip to content

Commit f9c7cc4

Browse files
authored
Merge pull request #22 from LinuxinaBit/patch-1
Temporarily comment out the FT truecolor tag for compatibility
2 parents 643865e + e9b38f0 commit f9c7cc4

1 file changed

Lines changed: 12 additions & 4 deletions

File tree

js/micron-parser.js

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -694,15 +694,18 @@ applyStyleToElement(el, style, defaultBg = "default") {
694694
state.fg_color = color;
695695
skip = 8;
696696
break;
697-
}
698-
699-
if (line[i+1] == "T" && line.length >= i + 8) { // "this page doesnt work on nomadnet" truecolor tag (`FTxxxxxx)
700-
697+
}
698+
699+
/*
700+
// Until NomadNet supports the `FTaaaaaa truecolor Micron tag, please do not uncomment.
701+
if (line[i+1] == "T" && line.length >= i + 8) {
701702
let color = line.substr(i + 2, 6);
702703
state.fg_color = color;
703704
skip = 7;
704705
break;
705706
}
707+
*/
708+
706709
// next 3 chars => fg color
707710
if (line.length >= i + 4) {
708711

@@ -723,13 +726,18 @@ applyStyleToElement(el, style, defaultBg = "default") {
723726
flushPart(); // flush current part when background color changes
724727
break;
725728
}
729+
730+
/*
731+
// Until NomadNet supports the `BTaaaaaa truecolor Micron tag, please do not uncomment.
726732
if (line[i+1] == "T" && line.length >= i + 8) { // "this page doesnt work on nomadnet" truecolor tag (`BTxxxxxx)
727733
let color = line.substr(i + 2, 6);
728734
state.bg_color = color;
729735
skip = 7;
730736
flushPart(); // flush current part when background color changes
731737
break;
732738
}
739+
*/
740+
733741
// next 3 chars => bg color
734742
if (line.length >= i + 4) {
735743
let color = line.substr(i + 1, 3);

0 commit comments

Comments
 (0)