mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-21 03:15:14 +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