File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
src/lib/components/images Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 1010 export let useMono = false ;
1111
1212 const FALLBACK = {
13- mono: " https://raw.githubusercontent.com/Dsek-LTH/grafik/main/guild/d_sektionen/full /bw.svg" ,
13+ mono: " https://raw.githubusercontent.com/Dsek-LTH/grafik/main/guild/dsek /bw.svg" ,
1414 color:
15- " https://raw.githubusercontent.com/Dsek-LTH/grafik/main/guild/d_sektionen/full /color.svg" ,
15+ " https://raw.githubusercontent.com/Dsek-LTH/grafik/main/guild/dsek /color.svg" ,
1616 };
1717
1818 /** Fallback to D-sektionen icon if the committee icon is not found */
2121 (event ) => {
2222 if (
2323 event .target instanceof HTMLImageElement &&
24- (imageUrl != FALLBACK .color || imageUrl != FALLBACK .mono )
24+ event .target .src != FALLBACK .color &&
25+ event .target .src != FALLBACK .mono
2526 ) {
2627 event .target .src = imageUrl ;
2728 }
Original file line number Diff line number Diff line change 1818
1919{#if differentDarkLight }
2020 <object
21- data =" https://raw.githubusercontent.com/Dsek-LTH/grafik/main/guild/d_sektionen /symbol/d .svg"
21+ data =" https://raw.githubusercontent.com/Dsek-LTH/grafik/refs/heads/ main/guild/dsek /symbol/symbol_rosa .svg"
2222 type =" “image/svg"
2323 title =" {committee .name } symbol"
2424 class =" relative aspect-square"
3636 </object >
3737{:else }
3838 <object
39- data =" https://raw.githubusercontent.com/Dsek-LTH/grafik/main/guild/d_sektionen /symbol/d .svg"
39+ data =" https://raw.githubusercontent.com/Dsek-LTH/grafik/refs/heads/ main/guild/dsek /symbol/symbol_rosa .svg"
4040 type =" “image/svg"
4141 title =" {committee .name } symbol"
4242 class =" aspect-square"
You can’t perform that action at this time.
0 commit comments