File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,9 +24,7 @@ const LITS_URL = 'calendar.lits'
2424const KAL_ENGINE_OK = 0
2525const KAL_ERR_BUILD_ID_MISMATCH = - 22
2626
27- // Base path résolu depuis <base href> — patché par index.html sur GitHub Pages projet.
28- // Vaut '/' dans tous les autres environnements.
29- const BASE_PATH = `/app/liturgical-calendar/`
27+ const BASE_PATH = new URL ( document . baseURI ) . pathname
3028
3129// ── Lookup tables (miroir de types.rs) ───────────────────────────────────────
3230
Original file line number Diff line number Diff line change 1515 < link rel ="mask-icon " href ="/favicons/safari-pinned-tab.svg " color ="#5bbad5 " />
1616 < link rel ="stylesheet " href ="main.css " media ="screen " />
1717 < script >
18- // 1. Corrige <base href> sur GitHub Pages projet (/repo-name/).
19- // 2. Restaure le path sauvegardé par 404.html (redirect SPA).
20- // Synchrone : doit précéder tout module JS.
2118 ; ( function ( ) {
22- if ( / \. g i t h u b \. i o $ / . test ( location . hostname ) ) {
23- var m = location . pathname . match ( / ^ ( \/ [ ^ / ] + \/ ) / )
24- if ( m ) document . querySelector ( 'base' ) . href = m [ 1 ]
25- }
2619 var redirect = sessionStorage . getItem ( 'spa_redirect' )
2720 if ( redirect ) {
2821 sessionStorage . removeItem ( 'spa_redirect' )
You can’t perform that action at this time.
0 commit comments