Skip to content

Commit

Permalink
Not creating a global json variable
Browse files Browse the repository at this point in the history
  • Loading branch information
mgurgel committed Nov 8, 2024
1 parent 2381b2f commit 657ede1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Sources/PrivacyDashboard/PrivacyDashboardUserScript.swift
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ final class PrivacyDashboardUserScript: NSObject, StaticUserScript {
atbEntry = ""
#endif
let js = """
const json = {
window.onGetToggleReportOptionsResponse({
"data": [
{
"id": "siteUrl",
Expand All @@ -356,8 +356,7 @@ final class PrivacyDashboardUserScript: NSObject, StaticUserScript {
{"id": "openerContext"},
{"id": "userRefreshCount"},
]
}
window.onGetToggleReportOptionsResponse(json);
});
"""
evaluate(js: js, in: webView)
}
Expand Down

0 comments on commit 657ede1

Please sign in to comment.