1
0
mirror of https://github.com/chylex/TweetDuck.git synced 2025-05-02 20:34:07 +02:00
TweetDuck/Browser/Handling/PopupHandler.cs

20 lines
472 B
C#

using TweetLib.Browser.CEF.Interfaces;
using TweetLib.Core;
using TweetLib.Core.Features.Twitter;
namespace TweetDuck.Browser.Handling {
sealed class PopupHandler : IPopupHandler {
public static PopupHandler Instance { get; } = new PopupHandler();
private PopupHandler() {}
public bool IsPopupAllowed(string url) {
return TwitterUrls.IsAllowedPopupUrl(url);
}
public void OpenExternalBrowser(string url) {
App.SystemHandler.OpenBrowser(url);
}
}
}