diff --git a/src/js/pages/surah/stream.tsx b/src/js/pages/surah/stream.tsx index 960dca6..08e0e51 100644 --- a/src/js/pages/surah/stream.tsx +++ b/src/js/pages/surah/stream.tsx @@ -114,7 +114,6 @@ function SurahStream({ node, locale, slice, paused, t }: Props) { const root: HTMLElement = document.querySelector('.root')!; 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.surah')!; const toBoolean = (str: string | null): boolean => str !== null && ['1', 't', 'true', 'yes'].includes(str); const params = new URLSearchParams(location.search); diff --git a/src/js/pages/surah/stream/loader.ts b/src/js/pages/surah/stream/loader.ts index 551c3c2..7cc90d2 100644 --- a/src/js/pages/surah/stream/loader.ts +++ b/src/js/pages/surah/stream/loader.ts @@ -12,7 +12,7 @@ import postman, { item } from 'postman'; item.css('/css/pages/surah/stream.css'), item.image('/images/moon.svg'), item.image('/images/leaf.svg'), - item.json(`/${locale}/${surahId}/surah.json`, {className: 'surah'}), + 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)'),