Skip to content

Commit

Permalink
Merge pull request #265 from humhub/f-fix-only-office-connector-on-ios
Browse files Browse the repository at this point in the history
Fix onlyoffice connector
  • Loading branch information
marc-farre authored Jan 9, 2025
2 parents 0e0eb52 + bcdc054 commit 34bf5ab
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/flavored/web_view.f.dart
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ class FlavoredWebViewState extends ConsumerState<WebViewF> {
}

Future<FetchRequest?> _shouldInterceptFetchRequest(InAppWebViewController controller, FetchRequest request) async {
request.headers!.addAll(_initialRequest.headers!);
request.headers?.addAll(instance.customHeaders);
return request;
}

Expand Down
2 changes: 1 addition & 1 deletion lib/pages/web_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ class WebViewAppState extends ConsumerState<WebView> {
Future<FetchRequest?> _shouldInterceptFetchRequest(
InAppWebViewController controller, FetchRequest request) async {
logDebug("_shouldInterceptFetchRequest");
request.headers!.addAll(_initialRequest.headers!);
request.headers?.addAll(_initialRequest.headers!);
return request;
}

Expand Down
2 changes: 1 addition & 1 deletion lib/util/web_view_global_controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ class WebViewGlobalController {
static InAppWebViewSettings settings({bool zoom = false}) {
return InAppWebViewSettings(
useShouldOverrideUrlLoading: true,
useShouldInterceptFetchRequest: true,
useShouldInterceptFetchRequest: false,
javaScriptEnabled: true,
javaScriptCanOpenWindowsAutomatically: true,
supportMultipleWindows: true,
Expand Down

0 comments on commit 34bf5ab

Please sign in to comment.