mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
feat: 新增电脑版登录
This commit is contained in:
@@ -40,9 +40,9 @@ class WebviewController extends GetxController {
|
||||
webviewInit();
|
||||
}
|
||||
|
||||
webviewInit() {
|
||||
webviewInit({String uaType = 'mob'}) {
|
||||
controller
|
||||
..setUserAgent(Request().headerUa())
|
||||
..setUserAgent(Request().headerUa(type: uaType))
|
||||
..setJavaScriptMode(JavaScriptMode.unrestricted)
|
||||
..setNavigationDelegate(
|
||||
NavigationDelegate(
|
||||
|
||||
Reference in New Issue
Block a user