Remove unused local

This commit is contained in:
0x1eef 2023-07-01 19:32:17 -03:00
parent 8e0bde6c44
commit de070a08ad
2 changed files with 1 additions and 2 deletions

View file

@ -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);

View file

@ -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)'),