mirror of
https://github.com/yaklang/yaklang-chrome-extension.git
synced 2026-09-26 21:21:53 +08:00
Improve proxy initialization with last used proxy restoration
This commit is contained in:
@@ -43,9 +43,9 @@ export class ProxySettings {
|
||||
]);
|
||||
}
|
||||
// 确保日志存储已初始化
|
||||
const logs = await proxyStore.getLogs(); // 使用 getLogs 而不是 getProxyLogs
|
||||
const logs = await proxyStore.getLogs();
|
||||
if (!logs || logs.length === 0) {
|
||||
await proxyStore.clearLogs(); // 初始化日志存储
|
||||
await proxyStore.clearLogs();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user