Let the server set the theme based on the cookie sent at request time, which should stop flashing
This commit is contained in:
@@ -77,7 +77,6 @@ export const parseDescriptionDefault = (reg: Register, description: string) => {
|
||||
// });
|
||||
} else if (trimmedLine.startsWith('*')) {
|
||||
const noteMatch = trimmedLine.match(/^(\*+)\s*(.*)/);
|
||||
console.log("NOTE MATCH",noteMatch);
|
||||
if (noteMatch) {
|
||||
accessData.notes.push({
|
||||
ref: noteMatch[1],
|
||||
@@ -89,8 +88,6 @@ export const parseDescriptionDefault = (reg: Register, description: string) => {
|
||||
reg.text += `${line}\n`;
|
||||
continue;
|
||||
}
|
||||
// console.log("LINE",line);
|
||||
console.log(line.match(/^\s+/), line);
|
||||
if (line.match(/^\s+/) && accessData.operations.length > 0) {
|
||||
accessData.operations[accessData.operations.length - 1].description += `\n${line}`;
|
||||
} else {
|
||||
|
||||
@@ -24,7 +24,6 @@ export const parseDescriptionF0 = (reg: Register, description: string) => {
|
||||
|
||||
if(spaces_at_start == 2) {
|
||||
if (trimmedLine.startsWith('*')) {
|
||||
console.log("PARENT",trimmedLine);
|
||||
const noteMatch = trimmedLine.match(/^(\*+)\s*(.*)/);
|
||||
if (noteMatch) {
|
||||
reg.notes.push({
|
||||
@@ -88,7 +87,6 @@ export const parseDescriptionF0 = (reg: Register, description: string) => {
|
||||
const footnoteMatch = bitDescription.match(/(\*+)$/);
|
||||
let footnoteRef: string | undefined = undefined;
|
||||
if (footnoteMatch) {
|
||||
console.log("FOOTNOTE",footnoteMatch);
|
||||
footnoteRef = footnoteMatch[1];
|
||||
bitDescription = bitDescription.substring(0, bitDescription.length - footnoteRef.length).trim();
|
||||
}
|
||||
@@ -112,7 +110,6 @@ export const parseDescriptionF0 = (reg: Register, description: string) => {
|
||||
}
|
||||
}
|
||||
} else if (trimmedLine) {
|
||||
console.log("LINE", trimmedLine);
|
||||
if (line.match(/^\s+/) && accessData.operations.length > 0) {
|
||||
accessData.operations[accessData.operations.length - 1].description += `\n${line}`;
|
||||
} else {
|
||||
@@ -125,7 +122,6 @@ export const parseDescriptionF0 = (reg: Register, description: string) => {
|
||||
}
|
||||
if (currentAccess) {
|
||||
detail[currentAccess] = accessData;
|
||||
console.log("FINAL",detail,currentAccess);
|
||||
}
|
||||
|
||||
// Push the parsed detail into modes
|
||||
|
||||
Reference in New Issue
Block a user