From 01540ca9d24112e8b587c35150e2c9b7bbfdbdec Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Wed, 15 Jan 2025 12:53:42 +1100 Subject: Pass home and cache through bundler --- services/math.ts | 3 +-- services/players.ts | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) (limited to 'services') diff --git a/services/math.ts b/services/math.ts index 41e1488..2c7fabd 100644 --- a/services/math.ts +++ b/services/math.ts @@ -1,6 +1,5 @@ import { GLib, GObject, property, readFile, register, writeFileAsync } from "astal"; import { derivative, evaluate, rationalize, simplify } from "mathjs/number"; -import { CACHE_DIR } from "../utils/constants"; export interface HistoryItem { equation: string; @@ -18,7 +17,7 @@ export default class Math extends GObject.Object { } readonly #maxHistory = 20; - readonly #path = `${CACHE_DIR}/math-history.json`; + readonly #path = `${CACHE}/math-history.json`; readonly #history: HistoryItem[] = []; #variables: Record = {}; diff --git a/services/players.ts b/services/players.ts index 3313595..b81d4b5 100644 --- a/services/players.ts +++ b/services/players.ts @@ -1,6 +1,5 @@ import { GLib, GObject, property, readFile, register, writeFileAsync } from "astal"; import AstalMpris from "gi://AstalMpris"; -import { CACHE_DIR } from "../utils/constants"; import { isRealPlayer } from "../utils/mpris"; @register({ GTypeName: "Players" }) @@ -12,7 +11,7 @@ export default class Players extends GObject.Object { return this.instance; } - readonly #path = `${CACHE_DIR}/players.txt`; + readonly #path = `${CACHE}/players.txt`; readonly #players: AstalMpris.Player[] = []; readonly #subs = new Map< JSX.Element, -- cgit v1.2.3-freya