mirror of
https://github.com/chylex/TweetDuck.git
synced 2025-05-05 02:34:07 +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 CefSharp.Handler;
|
||||||
using TweetDuck.Controls;
|
using TweetDuck.Controls;
|
||||||
using TweetDuck.Utils;
|
using TweetDuck.Utils;
|
||||||
@ -6,7 +7,9 @@
|
|||||||
namespace TweetDuck.Browser.Handling.General {
|
namespace TweetDuck.Browser.Handling.General {
|
||||||
sealed class CustomLifeSpanHandler : LifeSpanHandler {
|
sealed class CustomLifeSpanHandler : LifeSpanHandler {
|
||||||
private static bool IsPopupAllowed(string url) {
|
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) {
|
public static bool HandleLinkClick(IWebBrowser browserControl, WindowOpenDisposition targetDisposition, string targetUrl) {
|
||||||
|
Loading…
Reference in New Issue
Block a user