fix: triodion section data path (01.json not 01/full.json)
This commit is contained in:
1 parent
672af4b5fb
commit
0b20bb77ad
1 file changed
+3
-1
@@ -260,7 +260,9 @@ export class PrayerView {
|
||||
try {
|
||||
// Paraclete ids are t{tone}-{day}; others map directly
|
||||
let dataPath = `/data/shared/${this.collection}/${id}/full.json`;
|
||||
if (this.collection === 'paraclete') {
|
||||
if (this.collection === 'triodion') {
|
||||
dataPath = `/data/shared/triodion/${id}.json`;
|
||||
} else if (this.collection === 'paraclete') {
|
||||
const m = id.match(/^t(\d)-(\w+)$/);
|
||||
if (!m) {
|
||||
contentEl.innerHTML = `<p class="text-navy-light">${this.t.prayer.notFound}</p>`;
|
||||
|
||||
Reference in new issue
Block a user