mirror of
https://github.com/mihonapp/mihon.git
synced 2025-07-01 13:37:50 +02:00
Add ability to reverse search result order
Actually activate hath perks
This commit is contained in:
@ -120,11 +120,16 @@ class EHConfigurator {
|
||||
val sessionCookie = response.headers().toMultimap()["Set-Cookie"]?.find {
|
||||
it.startsWith("s=")
|
||||
}?.removePrefix("s=")?.substringBefore(';')
|
||||
val hathPerksCookie = response.headers().toMultimap()["Set-Cookie"]?.find {
|
||||
it.startsWith("hath_perks=")
|
||||
}?.removePrefix("hath_perks=")?.substringBefore(';')
|
||||
|
||||
if(keyCookie != null)
|
||||
prefs.eh_settingsKey().set(keyCookie)
|
||||
if(sessionCookie != null)
|
||||
prefs.eh_sessionCookie().set(sessionCookie)
|
||||
if(hathPerksCookie != null)
|
||||
prefs.eh_hathPerksCookies().set(hathPerksCookie)
|
||||
}
|
||||
|
||||
companion object {
|
||||
|
Reference in New Issue
Block a user