21 lines
434 B
JavaScript
21 lines
434 B
JavaScript
export const __ID__ = `token-browser`;
|
|
|
|
/**
|
|
* @param {string} path
|
|
*/
|
|
export function filePath(path) {
|
|
if (path.startsWith(`modules/${__ID__}/`)) {
|
|
return path;
|
|
};
|
|
if (path.startsWith(`/`)) {
|
|
path = path.slice(1);
|
|
};
|
|
return `modules/${__ID__}/${path}`;
|
|
};
|
|
|
|
let _devMode;
|
|
export function devMode() {
|
|
if (_devMode != null) { return _devMode };
|
|
_devMode = game.modules.get(__ID__).flags.inDev ?? false;
|
|
return _devMode;
|
|
};
|