Skip to content

Commit 8f0f05f

Browse files
committed
fix: Added @SuppressLint("AddJavascriptInterface")
Addresses #762
1 parent 9f28de7 commit 8f0f05f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

agentweb-core/src/main/java/com/just/agentweb/AgentWeb.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434

3535
import java.lang.ref.WeakReference;
3636
import java.util.Map;
37+
import android.annotation.SuppressLint;
3738

3839
/**
3940
* @author cenxiaozhong
@@ -691,6 +692,7 @@ public PreAgentWeb createAgentWeb() {
691692
}
692693

693694

695+
@SuppressLint("AddJavascriptInterface")
694696
public CommonBuilder addJavascriptInterface(@NonNull String name, @NonNull Object o) {
695697
this.mAgentBuilder.addJavaObject(name, o);
696698
return this;

0 commit comments

Comments
 (0)