This commit is contained in:
@@ -179,10 +179,15 @@ function parseLessonCell(cell) {
|
||||
|
||||
if (!text || cleanupRegex.test(text) || !cell.fill?.fgColor) return null;
|
||||
|
||||
const backgroundColor = cell.fill.fgColor.argb === undefined ? undefined : `#${cell.fill.fgColor.argb}`;
|
||||
const foregroundColor = backgroundColor === undefined ? undefined : (
|
||||
cell.font?.color?.argb === undefined ? undefined : `#${cell.font.color.argb}`
|
||||
);
|
||||
|
||||
return {
|
||||
text,
|
||||
backgroundColor: cell.fill.fgColor.argb === undefined ? undefined : `#${cell.fill.fgColor.argb}`,
|
||||
textColor: cell.font?.color?.argb === undefined ? undefined : `#${cell.font.color.argb}`,
|
||||
backgroundColor,
|
||||
foregroundColor,
|
||||
willBeSpecified: cell.fill.fgColor.argb === "FFFFFF00" ? true : undefined,
|
||||
};
|
||||
} catch {
|
||||
|
||||
Reference in New Issue
Block a user