@mixd-id/web-scaffold 0.1.240411015 → 0.1.240411016

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mixd-id/web-scaffold",
3
3
  "private": false,
4
- "version": "0.1.240411015",
4
+ "version": "0.1.240411016",
5
5
  "scripts": {
6
6
  "dev": "vite serve",
7
7
  "build": "vite build",
@@ -166,8 +166,8 @@ export default{
166
166
  if(typeof src === 'string') {
167
167
  if(src.startsWith('data:image/') || src.indexOf('<svg') >= 0);
168
168
  else{
169
- if(src.indexOf('://') < 0){
170
- src = (import.meta.env.VITE_IMAGE_HOST ?? '') + '/' + src
169
+ if(src.indexOf('://') < 0 && src.substring(0, 1) !== '/'){
170
+ src = ((import.meta.env.VITE_IMAGE_HOST ?? '') + '/' + src)
171
171
  }
172
172
  }
173
173