fix markdown example

This commit is contained in:
Hakim El Hattab
2020-03-09 09:33:27 +01:00
parent 49bb498d9d
commit 3f95a21009
4 changed files with 18 additions and 7 deletions

View File

@ -810,7 +810,7 @@ export default function( revealElement, options ) {
if( config.postMessage ) {
window.addEventListener( 'message', event => {
const data = event.data;
let data = event.data;
// Make sure we're dealing with JSON
if( typeof data === 'string' && data.charAt( 0 ) === '{' && data.charAt( data.length - 1 ) === '}' ) {