Fix bad old command form being sent from markdown preview

This commit is contained in:
Matt Bierner 2018-02-16 13:49:09 -08:00
parent 7398d3be89
commit f9765ffb9f

View file

@ -262,7 +262,7 @@
}
if (node.href.startsWith('file://')) {
const [path, fragment] = node.href.replace(/^file:\/\//i, '').split('#');
postMessage('_markdown.openDocumentLink', { path, fragment });
postMessage('_markdown.openDocumentLink', [{ path, fragment }]);
event.preventDefault();
event.stopPropagation();
break;