Files
core/hwe/ts/util/getIconPath.ts
T
2021-09-12 22:20:33 +09:00

9 lines
283 B
TypeScript

export function getIconPath(imgsvr: boolean | 1 | 0, picture: string): string {
// ../d_shared/common_path.js 필요
if (!imgsvr) {
return `${window.pathConfig.sharedIcon}/${picture}`;
} else {
return `${window.pathConfig.root}/d_pic/${picture}`;
}
}