Skip to content

Commit

Permalink
Only add WinRT type on Win PS, should fix #120
Browse files Browse the repository at this point in the history
  • Loading branch information
Windos committed Oct 4, 2020
1 parent ad26c49 commit b854507
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions BurntToast/Public/Update-BTNotification.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,9 @@
Write-Warning -Message "The AppId $AppId is not present in the registry, please run New-BTAppId to avoid inconsistent Toast behaviour."
}

$null = [Windows.UI.Notifications.ToastNotificationManager, Windows.UI.Notifications, ContentType = WindowsRuntime]
$null = [Windows.Data.Xml.Dom.XmlDocument, Windows.Data.Xml.Dom.XmlDocument, ContentType = WindowsRuntime]
if (-not $IsWindows) {
$null = [Windows.Data.Xml.Dom.XmlDocument, Windows.Data.Xml.Dom.XmlDocument, ContentType = WindowsRuntime]
}

if ($DataBinding) {
$DataDictionary = New-Object 'system.collections.generic.dictionary[string,string]'
Expand Down

0 comments on commit b854507

Please sign in to comment.