1
0
mirror of https://github.com/chylex/TweetDuck.git synced 2025-05-12 14:34:08 +02:00

Add address check to notification form before running notification.js

This commit is contained in:
chylex 2016-04-24 14:15:04 +02:00
parent b2892cc834
commit b94a6acee6

View File

@ -48,7 +48,7 @@ public FormNotification(Form owner, TweetDeckBridge bridge, bool autoHide){
public FormNotification(Form owner, bool autoHide) : this(owner,null,autoHide){}
private void Browser_FrameLoadEnd(object sender, FrameLoadEndEventArgs e){
if (e.Frame.IsMain && notificationJS != null){
if (e.Frame.IsMain && notificationJS != null && browser.Address != "about:blank"){
browser.ExecuteScriptAsync(notificationJS);
}
}