Merge branch 'develop' of https://github.com/vector-im/riot-web into rxl881/invertOutlineColour

pull/5605/head
Richard Lewis 2017-11-15 16:25:14 +00:00
commit ed3a6d29ac
1 changed files with 1 additions and 0 deletions

View File

@ -302,6 +302,7 @@ async function loadApp() {
const theme = configJson.default_theme || 'light';
for (let i = 0; (a = document.getElementsByTagName("link")[i]); i++) {
const href = a.getAttribute("href");
if (!href) continue;
// shouldn't we be using the 'title' tag rather than the href?
const match = href.match(/^bundles\/.*\/theme-(.*)\.css$/);
if (match) {