mirror of
https://github.com/chylex/TweetDuck.git
synced 2025-04-25 00:15:48 +02:00
Fix popups for Google & Apple sign-in
This commit is contained in:
parent
5f60852fbb
commit
115428ec50
@ -1,4 +1,5 @@
|
||||
using CefSharp;
|
||||
using System;
|
||||
using CefSharp;
|
||||
using CefSharp.Handler;
|
||||
using TweetDuck.Controls;
|
||||
using TweetDuck.Utils;
|
||||
@ -6,7 +7,9 @@
|
||||
namespace TweetDuck.Browser.Handling.General {
|
||||
sealed class CustomLifeSpanHandler : LifeSpanHandler {
|
||||
private static bool IsPopupAllowed(string url) {
|
||||
return url.StartsWith("https://twitter.com/teams/authorize?");
|
||||
return url.StartsWith("https://twitter.com/teams/authorize?", StringComparison.Ordinal) ||
|
||||
url.StartsWith("https://accounts.google.com/", StringComparison.Ordinal) ||
|
||||
url.StartsWith("https://appleid.apple.com/", StringComparison.Ordinal);
|
||||
}
|
||||
|
||||
public static bool HandleLinkClick(IWebBrowser browserControl, WindowOpenDisposition targetDisposition, string targetUrl) {
|
||||
|
Loading…
Reference in New Issue
Block a user