mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-05 04:06:44 +02:00
Fix exporting from nightly where the data-mx-theme is Light not light (#7416)
This commit is contained in:
parent
3dde039831
commit
d10ac7cfdb
@ -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 = "";
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user