Tweak the way the config/api globals are structured (closes #50)
This commit is contained in:
parent
2d6db98530
commit
c9ad0d8a4e
3 changed files with 30 additions and 22 deletions
|
|
@ -1,4 +1,18 @@
|
|||
import "./api.mjs";
|
||||
import "./hooks/init.mjs";
|
||||
import "./hooks/userConnected.mjs";
|
||||
import "./hooks/renderSettingsConfig.mjs";
|
||||
import { api } from "./api.mjs";
|
||||
import { config } from "./config.mjs";
|
||||
|
||||
Object.defineProperty(
|
||||
globalThis,
|
||||
`taf`,
|
||||
{
|
||||
value: Object.seal({
|
||||
api,
|
||||
config,
|
||||
}),
|
||||
writable: false,
|
||||
enumerable: true,
|
||||
},
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue