fix markdown example
This commit is contained in:
parent
49bb498d9d
commit
3f95a21009
4 changed files with 18 additions and 7 deletions
|
@ -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 ) === '}' ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue