Asem75 commited on
Commit
fbaa24e
·
verified ·
1 Parent(s): 9e66bed

Update quran_reader.js

Browse files
Files changed (1) hide show
  1. quran_reader.js +2 -0
quran_reader.js CHANGED
@@ -556,7 +556,9 @@
556
  if(card){delete card.dataset.quranTheme;for(const key of ['bg','fg','surface','border','highlight','highlight_fg'])card.style.removeProperty('--quran-'+key);}
557
  });
558
  window.addEventListener('muslim-clock-quran-open', event => open(event.detail || {}));
 
559
  window.MuslimClockQuran = Object.freeze({open, openSettings, loadData:async()=>data(await config()),
 
560
  mountEntry: (parent, back) => mount(parent, back, false),
561
  mountSettingsEntry: (parent, back) => mount(parent, back, true)});
562
  })();
 
556
  if(card){delete card.dataset.quranTheme;for(const key of ['bg','fg','surface','border','highlight','highlight_fg'])card.style.removeProperty('--quran-'+key);}
557
  });
558
  window.addEventListener('muslim-clock-quran-open', event => open(event.detail || {}));
559
+ // Used by other screens (e.g. adhkar) so Quranic text follows the person's screen-reader setting.
560
  window.MuslimClockQuran = Object.freeze({open, openSettings, loadData:async()=>data(await config()),
561
+ speechInfo: async()=>{const mode=prefs(await config()).speech_text;return {mode,visible:isVisibleMode(mode),original:mode==='original',convert:t=>speechText(t,mode)};},
562
  mountEntry: (parent, back) => mount(parent, back, false),
563
  mountSettingsEntry: (parent, back) => mount(parent, back, true)});
564
  })();