1
0
mirror of https://github.com/chylex/TweetDuck.git synced 2025-08-18 13:31:41 +02:00
Files
.github
.idea
bld
lib
resources
windows
TweetDuck
Application
Browser
Base
BrowserProcessHandler.cs
CefBrowserComponent.cs
ContextMenuBase.cs
ContextMenuBrowser.cs
ContextMenuNotification.cs
CustomJsDialogHandler.cs
CustomKeyboardHandler.cs
FileDialogHandler.cs
PopupHandler.cs
Notification
FormBrowser.Designer.cs
FormBrowser.cs
FormBrowser.resx
TrayIcon.Designer.cs
TrayIcon.cs
TweetDeckBrowser.cs
Configuration
Controls
Dialogs
Management
Plugins
Properties
Resources
Updates
Utils
Program.cs
Reporter.cs
TweetDuck.csproj
app.config
packages.config
TweetDuck.Browser
TweetDuck.Video
TweetImpl.CefSharp
.gitattributes
.gitignore
LICENSE.md
README.md
TweetDuck.sln
TweetDuck.sln.DotSettings
Version.cs
TweetDuck/windows/TweetDuck/Browser/Base/PopupHandler.cs

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);
}
}
}