mirror of
https://github.com/chylex/TweetDuck.git
synced 2025-04-30 14:34:09 +02:00
20 lines
468 B
C#
20 lines
468 B
C#
using TweetLib.Browser.CEF.Interfaces;
|
|
using TweetLib.Core;
|
|
using TweetLib.Core.Features.Twitter;
|
|
|
|
namespace TweetDuck.Browser.Base {
|
|
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);
|
|
}
|
|
}
|
|
}
|