diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-01-15 12:53:42 +1100 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-01-15 12:53:42 +1100 |
| commit | 01540ca9d24112e8b587c35150e2c9b7bbfdbdec (patch) | |
| tree | f5117d33551d3aee79af734a2d52d101f2ca8a19 /services/math.ts | |
| parent | bar: wifi and bluetooth status (diff) | |
| download | caelestia-shell-01540ca9d24112e8b587c35150e2c9b7bbfdbdec.tar.gz caelestia-shell-01540ca9d24112e8b587c35150e2c9b7bbfdbdec.tar.bz2 caelestia-shell-01540ca9d24112e8b587c35150e2c9b7bbfdbdec.zip | |
Pass home and cache through bundler
Diffstat (limited to 'services/math.ts')
| -rw-r--r-- | services/math.ts | 3 |
1 files changed, 1 insertions, 2 deletions
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<string, string> = {}; |