Merge branch 'master' into develop

This commit is contained in:
RiotRobot 2021-12-20 14:22:07 +00:00
commit d870c16cd1
4 changed files with 166 additions and 8 deletions

View file

@ -39,7 +39,8 @@ function mutateCssText(css: string): string {
const getExportCSS = async (usedClasses: Set<string>): Promise<string> => {
// only include bundle.css and the data-mx-theme=light styling
const stylesheets = Array.from(document.styleSheets).filter(s => {
return s.href?.endsWith("bundle.css") || (s.ownerNode as HTMLStyleElement).dataset.mxTheme === "light";
return s.href?.endsWith("bundle.css") ||
(s.ownerNode as HTMLStyleElement).dataset.mxTheme.toLowerCase() === "light";
});
let css = "";