aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2024-08-06 22:11:57 +0300
committerGravatar Vitaly Takmazov2024-09-02 05:58:21 +0300
commit5a30741ef70d8a11e2f1976229957983f9c08fad (patch)
tree4b1543201435ed4027e05bf8e645718694c8fa94 /src/main
parent0149dddce3145875b45416cbc80bc229098fe495 (diff)
Fix vnext server build
Diffstat (limited to 'src/main')
-rw-r--r--src/main/assets/icon.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/assets/icon.js b/src/main/assets/icon.js
index 5cd787a5..b4b5aedc 100644
--- a/src/main/assets/icon.js
+++ b/src/main/assets/icon.js
@@ -1,10 +1,10 @@
-import evilIcons from 'evil-icons/assets/sprite.svg'
+const spritesUrl = new URL('evil-icons/assets/sprite.svg', import.meta.url)
function icon(name, { size = '', className = '' }) {
const classes = `icon icon--${name} icon--${size} ${className}`.trim()
var icon = '<svg class="icon__cnt">' +
- `<use xlink:href='${evilIcons}#${name}-icon' />` +
+ `<use xlink:href='${spritesUrl}#${name}-icon' />` +
'</svg>'
var html = '<div class="' + classes + '">' +