Skip to content

Commit

Permalink
Default board style to plain style for anon/new players
Browse files Browse the repository at this point in the history
  • Loading branch information
anoek committed Aug 23, 2024
1 parent 91ca950 commit d7204bb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/lib/preferences.ts
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,10 @@ export function dump(): void {

export function getSelectedThemes(): GobanSelectedThemes {
//let default_plain = $.browser.mobile || ($(window).width() * (window.devicePixelRatio || 1)) <= 768;
const default_plain = $(window).width() * (window.devicePixelRatio || 1) <= 768;
let default_plain = $(window).width() * (window.devicePixelRatio || 1) <= 768;
if (data.get("user").anonymous || data.get("user").id > 1618000) {
default_plain = true;
}

let board = get("goban-theme-board") || (default_plain ? "Plain" : "Kaya");
//let white = get("goban-theme-white") || (default_plain ? "Plain" : "Plain");
Expand Down

0 comments on commit d7204bb

Please sign in to comment.