From 994371e0cab72c16599387f970f08008572459ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A1ra=20El-Saig?= Date: Wed, 21 Feb 2024 23:58:11 +0100 Subject: [PATCH] Prevent API compatibility errors. --- .../Services/JsonEditorContentSecurityPolicyProvider.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lombiq.JsonEditor/Services/JsonEditorContentSecurityPolicyProvider.cs b/Lombiq.JsonEditor/Services/JsonEditorContentSecurityPolicyProvider.cs index e9fe6bd..27cd27d 100644 --- a/Lombiq.JsonEditor/Services/JsonEditorContentSecurityPolicyProvider.cs +++ b/Lombiq.JsonEditor/Services/JsonEditorContentSecurityPolicyProvider.cs @@ -31,7 +31,7 @@ protected override ValueTask ThenUpdateAsync( // directive" error. if (resourceExists) { - securityPolicies[ScriptSrc] = IContentSecurityPolicyProvider + securityPolicies[ScriptSrc] = ContentSecurityPolicyProvider .GetDirective(securityPolicies, ScriptSrc) .MergeWordSets(DirectiveValue); }