Skip to content

Commit

Permalink
fix: unable to load entity.svg
Browse files Browse the repository at this point in the history
  • Loading branch information
Vivi Lin committed Feb 13, 2025
1 parent fff591e commit 7ce9db8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions docs/src/config/resources.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
const _base_path = "https://raw.githubusercontent.com/UoB-COMSM0166/2025-group-16/fff591e0d3a233930eaadb7c24fa1a3d3cbae2c2/docs/"

const _path = {
img: {
entity: '../docs/assets/images/entity.svg',
entity: 'assets/images/entity.svg',
},
sound: {},
};
Expand Down Expand Up @@ -44,11 +46,11 @@ const Resources = {
Object.fromEntries([
...Object.values(_entityVariants.entity).map((fill) => [
fill,
new SVGImage(_path.img.entity, { scale, fill }),
new SVGImage(`${_base_path}${_path.img.entity}`, { scale, fill }),
]),
...Object.entries(_entityVariants.status).map(([status, fill]) => [
status,
new SVGImage(_path.img.entity, { scale, fill }),
new SVGImage(`${_base_path}${_path.img.entity}`, { scale, fill }),
]),
]),
]),
Expand Down

0 comments on commit 7ce9db8

Please sign in to comment.