File tree Expand file tree Collapse file tree 1 file changed +17
-11
lines changed
app/src/main/java/com/duckduckgo/app/browser Expand file tree Collapse file tree 1 file changed +17
-11
lines changed Original file line number Diff line number Diff line change @@ -3702,18 +3702,24 @@ class BrowserTabViewModel @Inject constructor(
3702
3702
" screenUnlock" -> screenUnlock()
3703
3703
}
3704
3704
}
3705
- " breakageReportResult" -> if (data != null ) {
3706
- breakageReportResult(data)
3705
+ " breakageReporting" -> if (data != null ) {
3706
+ when (method) {
3707
+ " breakageReportResult" -> {
3708
+ breakageReportResult(data)
3709
+ }
3710
+ }
3707
3711
}
3708
- " initialPing" -> {
3709
- // TODO: Eventually, we might want plugins here
3710
- val response = JSONObject (
3711
- mapOf (
3712
- " desktopModeEnabled" to (getSite()?.isDesktopMode ? : false ),
3713
- " forcedZoomEnabled" to (accessibilityViewState.value?.forceZoom ? : false ),
3714
- ),
3715
- )
3716
- onResponse(response)
3712
+ " messaging" -> when (method) {
3713
+ " initialPing" -> {
3714
+ // TODO: Eventually, we might want plugins here
3715
+ val response = JSONObject (
3716
+ mapOf (
3717
+ " desktopModeEnabled" to (getSite()?.isDesktopMode ? : false ),
3718
+ " forcedZoomEnabled" to (accessibilityViewState.value?.forceZoom ? : false ),
3719
+ ),
3720
+ )
3721
+ onResponse(response)
3722
+ }
3717
3723
}
3718
3724
}
3719
3725
}
You can’t perform that action at this time.
0 commit comments