X-Git-Url: https://gitweb.stoutner.com/?p=PrivacyBrowserAndroid.git;a=blobdiff_plain;f=app%2Fsrc%2Fmain%2Fjava%2Fcom%2Fstoutner%2Fprivacybrowser%2Ffragments%2FGuideWebViewFragment.java;fp=app%2Fsrc%2Fmain%2Fjava%2Fcom%2Fstoutner%2Fprivacybrowser%2Ffragments%2FGuideWebViewFragment.java;h=3e1019ac930c615e9c9b731de683d236b14a8a20;hp=0b0bc15741aab693f4424e50c49863da6a83deea;hb=641d15ace34579762580ed8297f324133354499b;hpb=725e4a525bed43f46e24ecc97eafcc339a48939c diff --git a/app/src/main/java/com/stoutner/privacybrowser/fragments/GuideWebViewFragment.java b/app/src/main/java/com/stoutner/privacybrowser/fragments/GuideWebViewFragment.java index 0b0bc157..3e1019ac 100644 --- a/app/src/main/java/com/stoutner/privacybrowser/fragments/GuideWebViewFragment.java +++ b/app/src/main/java/com/stoutner/privacybrowser/fragments/GuideWebViewFragment.java @@ -1,5 +1,5 @@ /* - * Copyright © 2016-2020 Soren Stoutner . + * Copyright © 2016-2021 Soren Stoutner . * * This file is part of Privacy Browser . * @@ -117,7 +117,8 @@ public class GuideWebViewFragment extends Fragment { @Override public WebResourceResponse shouldInterceptRequest(WebView webView, String url) { - // Have the WebView asset loader process the request. This allows loading of SVG files, which otherwise is prevented by the CORS policy. + // Have the WebView asset loader process the request. + // This allows using the `appassets.androidplatform.net` URL, which handles the loading of SVG files, which otherwise is prevented by the CORS policy. return webViewAssetLoader.shouldInterceptRequest(Uri.parse(url)); } });