mirror of
https://github.com/vale981/tridactyl
synced 2025-03-06 01:51:40 -05:00
Merge pull request #1862 from chaorace/patch-1
Correctly detects Windows when applying colors
This commit is contained in:
commit
aa836f2ff7
1 changed files with 1 additions and 1 deletions
|
@ -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())
|
||||
|
|
Loading…
Add table
Reference in a new issue