diff --git a/src/js/pages/surah/index/loader.ts b/src/js/pages/surah/index/loader.ts index 91e7938..48344bf 100644 --- a/src/js/pages/surah/index/loader.ts +++ b/src/js/pages/surah/index/loader.ts @@ -10,7 +10,7 @@ import postman, { item } from 'postman'; item.script('/js/pages/surah/index.js'), item.css('/css/pages/surah/index.css'), item.image('/images/moon.svg'), - item.image('/images/leaf/svg'), + item.image('/images/leaf.svg'), item.font('Kanit Regular', 'url(/fonts/kanit-regular.ttf)'), item.font('Vazirmatn Regular', 'url(/fonts/vazirmatn-regular.ttf)'), item.font('Roboto Mono Regular', 'url(/fonts/roboto-mono-regular.ttf)'), diff --git a/src/js/pages/surah/stream.tsx b/src/js/pages/surah/stream.tsx index 21aef88..960dca6 100644 --- a/src/js/pages/surah/stream.tsx +++ b/src/js/pages/surah/stream.tsx @@ -115,7 +115,7 @@ function SurahStream({ node, locale, slice, paused, t }: Props) { const locale = root.getAttribute('data-locale') as Quran.Locale; const surahId = parseInt(root.getAttribute('data-surah-id')!); const path = `/${locale}/${surahId}/surah.json`; - const node: HTMLScriptElement = document.querySelector(`script[src="${path}"]`)!; + const node: HTMLScriptElement = document.querySelector('script.surah')!; const toBoolean = (str: string | null): boolean => str !== null && ['1', 't', 'true', 'yes'].includes(str); const params = new URLSearchParams(location.search); const slice = Slice.fromParam(params.get('ayah')); diff --git a/src/js/pages/surah/stream/loader.ts b/src/js/pages/surah/stream/loader.ts index 600968d..551c3c2 100644 --- a/src/js/pages/surah/stream/loader.ts +++ b/src/js/pages/surah/stream/loader.ts @@ -9,10 +9,10 @@ import postman, { item } from 'postman'; postman( item.script('/js/pages/surah/stream.js'), - item.css('/css/pages/surah/strean.css'), - item.image('/images/moon,svg'), + item.css('/css/pages/surah/stream.css'), + item.image('/images/moon.svg'), item.image('/images/leaf.svg'), - item.json(`/${locale}/${surahId}/surah.json`), + item.json(`/${locale}/${surahId}/surah.json`, {className: 'surah'}), item.font('Kanit Regular', 'url(/fonts/kanit-regular.ttf)'), item.font('Vazirmatn Regular', 'url(/fonts/vazirmatn-regular.ttf)'), item.font('Roboto Mono Regular', 'url(/fonts/roboto-mono-regular.ttf)'),