mirror of
https://codeberg.org/tacerus/teddit.git
synced 2024-11-22 06:49:26 +01:00
rm redundant lines
This commit is contained in:
parent
620a400e89
commit
5caee1fd97
@ -81,9 +81,7 @@ meta(name="viewport", content="width=device-width, initial-scale=1.0")
|
||||
let file_ext = getFileExtension(url)
|
||||
if(image_exts.includes(file_ext))
|
||||
url = url.replace(`${u.host}/`, 'teddit.net/pics/w:null_')
|
||||
if(video_exts.includes(file_ext))
|
||||
url = url.replace(u.host, 'teddit.net/vids') + '.mp4'
|
||||
if(!video_exts.includes(file_ext) && !image_exts.includes(file_ext))
|
||||
if(video_exts.includes(file_ext) || !image_exts.includes(file_ext))
|
||||
url = url.replace(u.host, 'teddit.net/vids') + '.mp4'
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user