From 555847e5e9adc30028ce55837169afe48e72d409 Mon Sep 17 00:00:00 2001 From: Matthew Hodgson Date: Sun, 5 Nov 2017 00:40:13 +0000 Subject: [PATCH] make default theme actually work --- src/vector/index.html | 3 +-- src/vector/index.js | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/vector/index.html b/src/vector/index.html index 14efb0b201..36047aca7a 100644 --- a/src/vector/index.html +++ b/src/vector/index.html @@ -27,8 +27,7 @@ if (match) { var title = match[1].charAt(0).toUpperCase() + match[1].slice(1); %> - + <% } else { %> <% } diff --git a/src/vector/index.js b/src/vector/index.js index 4a44cbdc5f..5e3718eada 100644 --- a/src/vector/index.js +++ b/src/vector/index.js @@ -294,8 +294,8 @@ async function loadApp() { const match = href.match(/^bundles\/.*\/theme-(.*)\.css$/); if (match) { if (match[1] === (configJson.default_theme || 'light')) { - // remove the alternative flag off the stylesheet - a.setAttribute("rel", "stylesheet"); + // remove the disabled flag off the stylesheet + a.removeAttribute("disabled"); } } }