Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: auto inject js sdk in webview. #222

Merged
merged 6 commits into from
Oct 28, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
window._gr_ignore_local_rule = true;
  • Loading branch information
cpacm committed Oct 15, 2024
commit 9ddd32e94949732f2e003b3032994776f133bacc
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ public String injectScriptFile(String id, String scriptSrc) {

private String initJsSDK() {
String initScript = "p.onload=function(){" +
" window._gr_ignore_local_rule = true;\n" +
" gdp('init', '%s', '%s', {\n" +
" serverUrl: '%s',\n" +
" });" +
Expand Down