Remove onCommand from markdown preview

This commit is contained in:
Matt Bierner
2018-09-21 13:36:37 -07:00
parent 388a62fe12
commit a101ececf4
7 changed files with 11 additions and 22 deletions

View File

@@ -57,7 +57,7 @@ export class CspAlerter {
notification.setAttribute('role', 'button');
notification.setAttribute('aria-label', strings.cspAlertMessageLabel);
notification.onclick = () => {
this.messaging!.postMessage('markdown.showPreviewSecuritySelector', [settings.source]);
this.messaging!.postMessage('showPreviewSecuritySelector', { source: settings.source });
};
document.body.appendChild(notification);
}