diff --git a/packages/common/src/icon.js b/packages/common/src/icon.js index beec496800f60337d7d2c0b9fc1f76084f66c309..a0d22df709393d9152672d406dd32597b562b8e6 100644 --- a/packages/common/src/icon.js +++ b/packages/common/src/icon.js @@ -2,6 +2,7 @@ import {html, LitElement, css} from 'lit-element'; import {unsafeHTML} from 'lit-html/directives/unsafe-html.js'; import {until} from 'lit-html/directives/until.js'; import * as commonUtils from '../utils.js'; +import {name as pkgName} from './../package.json'; // Use in case the icon fails to load const errorIcon = ` @@ -18,7 +19,7 @@ const errorIcon = ` `; export function getIconSVGURL(name) { - return commonUtils.getAssetURL('dbp-common', 'icons/' + encodeURI(name) + '.svg'); + return commonUtils.getAssetURL(pkgName, 'icons/' + encodeURI(name) + '.svg'); } export function getIconCSS(name) {