Skip to content

Commit f90548f

Browse files
committed
Move status to plugin, not delegate
1 parent 2397941 commit f90548f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

content-scope-scripts/content-scope-scripts-impl/src/main/java/com/duckduckgo/js/messaging/impl/RealAddDocumentStartScriptDelegate.kt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,12 @@ class RealAddDocumentStartScriptDelegate @Inject constructor(
4545
private val webViewCompatWrapper: WebViewCompatWrapper,
4646
) : AddDocumentStartScriptDelegate {
4747

48-
private var script: ScriptHandler? = null
49-
private var currentScriptString: String? = null
50-
5148
override fun createPlugin(strategy: AddDocumentStartJavaScriptScriptStrategy): AddDocumentStartJavaScriptPlugin {
5249
return object : AddDocumentStartJavaScriptPlugin {
50+
51+
private var script: ScriptHandler? = null
52+
private var currentScriptString: String? = null
53+
5354
@SuppressLint("RequiresFeature")
5455
override fun addDocumentStartJavaScript(webView: WebView) {
5556
coroutineScope.launch {

0 commit comments

Comments
 (0)