Skip to content

Commit 555847e

Browse files
committed
make default theme actually work
1 parent 816042d commit 555847e

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

‎src/vector/index.html‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@
2727
if (match) {
2828
var title = match[1].charAt(0).toUpperCase() + match[1].slice(1);
2929
%>
30-
<link rel="<% if (match[1] !== 'status') { %>alternate<% } %> stylesheet" title="<%= title %>"
31-
href="<%= file %>">
30+
<link rel="stylesheet" disabled title="<%= title %>" href="<%= file %>">
3231
<% } else { %>
3332
<link rel="stylesheet" href="<%= file %>">
3433
<% }

‎src/vector/index.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,8 +294,8 @@ async function loadApp() {
294294
const match = href.match(/^bundles\/.*\/theme-(.*)\.css$/);
295295
if (match) {
296296
if (match[1] === (configJson.default_theme || 'light')) {
297-
// remove the alternative flag off the stylesheet
298-
a.setAttribute("rel", "stylesheet");
297+
// remove the disabled flag off the stylesheet
298+
a.removeAttribute("disabled");
299299
}
300300
}
301301
}

0 commit comments

Comments
 (0)