Skip to content
Merged
Changes from all commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.runtime.setValue
import androidx.compose.ui.Modifier
import androidx.compose.ui.text.intl.Locale

@Composable
expect fun OoniWebView(
Expand All @@ -27,6 +28,7 @@ class OoniWebViewController {
url: String,
additionalHttpHeaders: Map<String, String> = mapOf(
"Enable-Embedded-View" to "true",
"Accept-Language" to "${Locale.current.toLanguageTag()},${Locale.current.language};q=0.9,en;q=0.8",
),
) {
events = events + Event.Load(url, additionalHttpHeaders)
Expand Down