From 0453bc87f211116c1f8f9f4d2335625d1d548ab7 Mon Sep 17 00:00:00 2001 From: Fernando Bunn Date: Tue, 2 Aug 2022 13:31:44 +0100 Subject: [PATCH] Always add the Autoconsent script --- DuckDuckGo/Browser Tab/Model/UserScripts.swift | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/DuckDuckGo/Browser Tab/Model/UserScripts.swift b/DuckDuckGo/Browser Tab/Model/UserScripts.swift index 1182aedbc0..44b167d445 100644 --- a/DuckDuckGo/Browser Tab/Model/UserScripts.swift +++ b/DuckDuckGo/Browser Tab/Model/UserScripts.swift @@ -50,14 +50,10 @@ final class UserScripts { contentScopeUserScript = ContentScopeUserScript(sourceProvider.privacyConfigurationManager, properties: prefs) autofillScript = WebsiteAutofillUserScript(scriptSourceProvider: sourceProvider.autofillSourceProvider!) if #available(macOS 11, *) { - if PrivacySecurityPreferences.shared.autoconsentEnabled != false { - autoconsentUserScript = AutoconsentUserScript(scriptSource: sourceProvider, - config: sourceProvider.privacyConfigurationManager.privacyConfig) - userScripts.append(autoconsentUserScript!) - } else { - os_log("Autoconsent is disabled", log: .autoconsent, type: .debug) - autoconsentUserScript = nil - } + autoconsentUserScript = AutoconsentUserScript(scriptSource: sourceProvider, + config: sourceProvider.privacyConfigurationManager.privacyConfig) + userScripts.append(autoconsentUserScript!) + } else { autoconsentUserScript = nil }