feat: 直播间新增刷新、内置浏览器打开

This commit is contained in:
orz12
2024-03-22 13:42:24 +08:00
parent fec6a1801d
commit 2329e7344e
3 changed files with 41 additions and 1 deletions

View File

@@ -64,6 +64,15 @@ class WebviewController extends GetxController {
}
}
},
onPageFinished: (String url) {
if (type.value == 'liveRoom') {
print("adding");
//注入js
controller.runJavaScriptReturningResult('''
document.styleSheets[0].insertRule('div.open-app-btn.bili-btn-warp {display:none;}', 0);
''').then((value) => print(value));
}
},
// 加载完成
onUrlChange: (UrlChange urlChange) async {
loadShow.value = false;