|
@@ -259,6 +259,11 @@ private extension ViewController {
|
|
|
openInAppBrowser(with: url, policy: inAppBrowserDefaultPolicy)
|
|
openInAppBrowser(with: url, policy: inAppBrowserDefaultPolicy)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ @objc private func instantMeetClicked(_ sender: NSClickGestureRecognizer) {
|
|
|
|
|
+ guard let url = URL(string: "https://meet.google.com/new") else { return }
|
|
|
|
|
+ openInDefaultBrowser(url: url)
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
private func normalizedURLString(from value: String) -> String {
|
|
private func normalizedURLString(from value: String) -> String {
|
|
|
if value.lowercased().hasPrefix("http://") || value.lowercased().hasPrefix("https://") {
|
|
if value.lowercased().hasPrefix("http://") || value.lowercased().hasPrefix("https://") {
|
|
|
return value
|
|
return value
|
|
@@ -1016,6 +1021,9 @@ private extension ViewController {
|
|
|
instant.onHoverChanged?(false)
|
|
instant.onHoverChanged?(false)
|
|
|
codeCard.onHoverChanged?(false)
|
|
codeCard.onHoverChanged?(false)
|
|
|
|
|
|
|
|
|
|
+ let instantClick = NSClickGestureRecognizer(target: self, action: #selector(instantMeetClicked(_:)))
|
|
|
|
|
+ instant.addGestureRecognizer(instantClick)
|
|
|
|
|
+
|
|
|
row.addArrangedSubview(instant)
|
|
row.addArrangedSubview(instant)
|
|
|
row.addArrangedSubview(codeCard)
|
|
row.addArrangedSubview(codeCard)
|
|
|
return row
|
|
return row
|