Skip to content

Commit

Permalink
update (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
zkitefly authored Jun 5, 2024
1 parent fe7307b commit 3345ef8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/src/main/java/com/eanyatonic/cctvViewer/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,8 @@ protected void onCreate(Bundle savedInstanceState) {
webSettings.setJavaScriptEnabled(true);
webSettings.setDomStorageEnabled(true);
webSettings.setDatabaseEnabled(true);
webSettings.setLoadsImagesAutomatically(false); // 禁用自动加载图片
webSettings.setBlockNetworkImage(true); // 禁用网络图片加载
webSettings.setUserAgent("Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36");

// 启用 JavaScript 自动点击功能
Expand Down

0 comments on commit 3345ef8

Please sign in to comment.