mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
fix(extension): Prevent crashes related to extensions
Mostly to prevent "NetworkOnMainThreadException"
This commit is contained in:
parent
ba7baba449
commit
4d2909340e
5 changed files with 10 additions and 6 deletions
|
@ -448,9 +448,10 @@ abstract class HttpSource : CatalogueSource {
|
|||
* @return url of the chapter
|
||||
*/
|
||||
open fun getChapterUrl(chapter: SChapter): String {
|
||||
return ""
|
||||
return pageListRequest(chapter).url.toString()
|
||||
}
|
||||
|
||||
// FIXME: Not sure if this is necessary, feels like this should be handled by the extension not by the app
|
||||
fun getChapterUrl(manga: SManga?, chapter: SChapter): String? {
|
||||
manga ?: return null
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue