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:
parent
b2892cc834
commit
b94a6acee6
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user