Merge pull request #1862 from chaorace/patch-1

Correctly detects Windows when applying colors
This commit is contained in:
Oliver Blanthorn 2019-09-17 21:22:14 +01:00 committed by GitHub
commit aa836f2ff7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -439,7 +439,7 @@ export function cssparse(...css: string[]) {
//#background
export async function loadtheme(themename: string) {
if (!(await Native.nativegate("0.1.9"))) return
const separator = (await browserBg.runtime.getPlatformInfo().os) === "win" ? "\\" : "/"
const separator = (await browserBg.runtime.getPlatformInfo()).os === "win" ? "\\" : "/"
// remove the "tridactylrc" bit so that we're left with the directory
const path =
(await Native.getrcpath())