Skip to content

Commit

Permalink
Fix sponsor bacground on landing page
Browse files Browse the repository at this point in the history
  • Loading branch information
haslinghuis committed Jan 1, 2024
1 parent 305bfcc commit dc30ff5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ function dist_src() {
function dist_node_modules_css() {
return gulp
.src("./node_modules/**/*.min.css")
.pipe(gulp.dest(`${DIST_DIR}node_modules`));
.pipe(gulp.dest(`${DIST_DIR}node_modules/`));
}

function dist_ol_css() {
Expand Down
1 change: 0 additions & 1 deletion src/css/tabs/landing.less
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
min-height: 100%;
height: 100%;
overflow-y: auto;
background-color: #2e2e2e;
}
.content_top {
height: 140px;
Expand Down
2 changes: 2 additions & 0 deletions src/js/DarkTheme.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ const DarkTheme = {
};

DarkTheme.isDarkThemeEnabled = function (callback) {
console.log('isDarkThemeEnabled', this.configSetting);

if (this.configSetting === 0) {
callback(true);
} else if (this.configSetting === 2) {
Expand Down
2 changes: 1 addition & 1 deletion src/js/Sponsor.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default class Sponsor {
if (!navigator.onLine) {
return;
}

console.log('Loading sponsor tile', window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches);
this._api.loadSponsorTile(DarkTheme.enabled ? 'dark' : 'light', name,
(content) => {
if (content) {
Expand Down

0 comments on commit dc30ff5

Please sign in to comment.