Skip to content

Commit 3cdb5c5

Browse files
committed
blacklist previewIframe in postmessage api (closes hakimel#3887)
1 parent 6b326a1 commit 3cdb5c5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

js/utils/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export const HORIZONTAL_BACKGROUNDS_SELECTOR = '.backgrounds>.slide-background';
55

66
// Methods that may not be invoked via the postMessage API
77
export const POST_MESSAGE_METHOD_BLACKLIST =
8-
/registerPlugin|registerKeyboardShortcut|addKeyBinding|addEventListener|showPreview/;
8+
/registerPlugin|registerKeyboardShortcut|addKeyBinding|addEventListener|showPreview|previewIframe/;
99

1010
// Regex for retrieving the fragment style from a class attribute
1111
export const FRAGMENT_STYLE_REGEX =

0 commit comments

Comments
 (0)