Add useful consts
This commit is contained in:
parent
1707ad56db
commit
8386548f8b
1 changed files with 9 additions and 0 deletions
9
module/consts.mjs
Normal file
9
module/consts.mjs
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
export const __ID__ = `taf`;
|
||||
|
||||
// MARK: filePath
|
||||
export function filePath(path) {
|
||||
if (path.startsWith(`/`)) {
|
||||
path = path.slice(1);
|
||||
};
|
||||
return `systems/${__ID__}/${path}`;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue