mirror of
https://github.com/SchildiChat/element-web.git
synced 2024-10-01 01:26:12 -04:00
fix @lampholder's NPE for real
This commit is contained in:
parent
9664b4d176
commit
bbcf74f774
@ -302,6 +302,7 @@ async function loadApp() {
|
|||||||
const theme = configJson.default_theme || 'light';
|
const theme = configJson.default_theme || 'light';
|
||||||
for (let i = 0; (a = document.getElementsByTagName("link")[i]); i++) {
|
for (let i = 0; (a = document.getElementsByTagName("link")[i]); i++) {
|
||||||
const href = a.getAttribute("href");
|
const href = a.getAttribute("href");
|
||||||
|
if (!href) continue;
|
||||||
// shouldn't we be using the 'title' tag rather than the href?
|
// shouldn't we be using the 'title' tag rather than the href?
|
||||||
const match = href.match(/^bundles\/.*\/theme-(.*)\.css$/);
|
const match = href.match(/^bundles\/.*\/theme-(.*)\.css$/);
|
||||||
if (match) {
|
if (match) {
|
||||||
|
Loading…
Reference in New Issue
Block a user