open-vault/ui/app/helpers/img-path.js

7 lines
197 B
JavaScript

import { helper } from '@ember/component/helper';
import ENV from 'vault/config/environment';
export default helper(function ([path]) {
return path.replace(/^~\//, `${ENV.rootURL}images/`);
});