mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
mod: account (#591)
* fix: onLoginMain * fix: account override * opt: sponsor block url
This commit is contained in:
committed by
GitHub
parent
64fc995f6b
commit
e190ca5868
@@ -66,7 +66,9 @@ class AccountManager extends Interceptor {
|
||||
Api.oauth2AccessToken,
|
||||
};
|
||||
|
||||
const AccountManager();
|
||||
AccountManager();
|
||||
|
||||
String blockServer = GStorage.blockServer;
|
||||
|
||||
static String getCookies(List<Cookie> cookies) {
|
||||
// Sort cookies by path (longer path first).
|
||||
@@ -236,8 +238,8 @@ class AccountManager extends Interceptor {
|
||||
await account.onChange();
|
||||
}
|
||||
|
||||
static bool _skipCookie(String path) {
|
||||
return path.startsWith(GStorage.blockServer) ||
|
||||
bool _skipCookie(String path) {
|
||||
return path.startsWith(blockServer) ||
|
||||
path.contains('hdslb.com') ||
|
||||
path.contains('biliimg.com');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user