import PowerduckState from '../app/powerduck-state'; import { isNullOrEmpty } from './utils/is-null-or-empty'; export default class PathResolver { static getResourcePath(url: string) { const cdnPath = PowerduckState.getCdnPath(); if (isNullOrEmpty(cdnPath)) { return url; } if (url.includes(cdnPath)) { return url; } return cdnPath + url; } }