Skip to content

Commit dc30ff5

Browse files
committed
Fix sponsor bacground on landing page
1 parent 305bfcc commit dc30ff5

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

gulpfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ function dist_src() {
381381
function dist_node_modules_css() {
382382
return gulp
383383
.src("./node_modules/**/*.min.css")
384-
.pipe(gulp.dest(`${DIST_DIR}node_modules`));
384+
.pipe(gulp.dest(`${DIST_DIR}node_modules/`));
385385
}
386386

387387
function dist_ol_css() {

src/css/tabs/landing.less

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
min-height: 100%;
77
height: 100%;
88
overflow-y: auto;
9-
background-color: #2e2e2e;
109
}
1110
.content_top {
1211
height: 140px;

src/js/DarkTheme.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ const DarkTheme = {
1313
};
1414

1515
DarkTheme.isDarkThemeEnabled = function (callback) {
16+
console.log('isDarkThemeEnabled', this.configSetting);
17+
1618
if (this.configSetting === 0) {
1719
callback(true);
1820
} else if (this.configSetting === 2) {

src/js/Sponsor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export default class Sponsor {
1111
if (!navigator.onLine) {
1212
return;
1313
}
14-
14+
console.log('Loading sponsor tile', window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches);
1515
this._api.loadSponsorTile(DarkTheme.enabled ? 'dark' : 'light', name,
1616
(content) => {
1717
if (content) {

0 commit comments

Comments
 (0)