Adds keyboard shortcuts for changing script policy

This commit is contained in:
2024-08-05 18:09:04 -07:00
parent 69aa02e303
commit 0fd466d86d
4 changed files with 67 additions and 1 deletions

View File

@@ -24,3 +24,10 @@ extension String {
return replacingCharacters(in: startIndex..<endIndex, with: "")
}
}
extension URL {
internal var securityOrigin: String {
// TODO: This could be smarter
return self.host() ?? ""
}
}