TitlebarView: move to drag api

This commit is contained in:
James Magahern
2024-05-10 17:01:14 -07:00
parent eec57f5f31
commit 6dccb25b3e
2 changed files with 8 additions and 6 deletions

View File

@@ -31,7 +31,8 @@ class ResourcePolicyManager: NSObject, SBRResourceOriginPolicyDataSource
func allowedOriginsForScriptResources() -> Set<String> { allowedOriginSet }
func scriptPolicyTypeByOrigin() -> [String : NSNumber] {
return scriptPolicies.mapValues { NSNumber(integerLiteral: $0.rawValue) }
let types = scriptPolicies.mapValues { NSNumber(integerLiteral: $0.rawValue) }
return types
}
private lazy var scriptPolicies: Dictionary<String, ScriptPolicy.PolicyType> = {