diff --git a/AnkiDroid/src/main/java/com/ichi2/anki/AbstractFlashcardViewer.kt b/AnkiDroid/src/main/java/com/ichi2/anki/AbstractFlashcardViewer.kt index 9dfad3b7c467..e726348cfe29 100644 --- a/AnkiDroid/src/main/java/com/ichi2/anki/AbstractFlashcardViewer.kt +++ b/AnkiDroid/src/main/java/com/ichi2/anki/AbstractFlashcardViewer.kt @@ -2263,6 +2263,8 @@ abstract class AbstractFlashcardViewer : override fun onPageStarted(view: WebView?, url: String?, favicon: Bitmap?) { pageRenderStopwatch.reset() pageFinishedFired = false + val script = "globalThis.ankidroid = globalThis.ankidroid || {}; ankidroid.postBaseUrl = ``" + view?.evaluateJavascript(script, null) } override fun shouldInterceptRequest(