Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import makeSVG from 'ember-svg-jar/utils/make-svg';
function getInlineAsset(assetId) {
try {
/* eslint-disable global-require */
return require(`ember-svg-jar/inlined/${assetId}`).default;
} catch (err) {
return null;
}
}
export function svgJar(assetId, svgAttrs) {
return makeSVG(assetId, svgAttrs, getInlineAsset);
}
export default makeHelper(svgJar);
export function svgJar(assetId, svgAttrs) {
return makeSVG(assetId, svgAttrs, getInlineAsset);
}