Compare commits

...

2 Commits

Author SHA1 Message Date
mr. m
15a908739d feat: Add simple routing class, b=no-bug, c=no-component 2026-02-10 12:48:58 +01:00
mr. m
f842c945ce feat: Initial commit, b=no-bug, c=no-component 2026-02-10 12:31:33 +01:00
3 changed files with 25 additions and 0 deletions

View File

@@ -15,5 +15,6 @@ DIRS += [
"urlbar",
"toolkit",
"sessionstore",
"space-routing",
"share",
]

View File

@@ -0,0 +1,17 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
import { JSONFile } from "resource://gre/modules/JSONFile.sys.mjs";
class nsZenSpaceRouting {
#jsonFile = null;
constructor() {
this.#jsonFile = new JSONFile({
path: PathUtils.join(PathUtils.profileDir, "space-routing.json"),
});
}
}
export var ZenSpaceRouting = new nsZenSpaceRouting();

View File

@@ -0,0 +1,7 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
EXTRA_JS_MODULES.zen += [
"ZenSpaceRouting.sys.mjs",
]