File tree 1 file changed +7
-1
lines changed
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -235,8 +235,13 @@ const mediaQueryXl = global?.matchMedia?.('(min-width: 1301px)');
235
235
/**
236
236
*
237
237
* @param html html you want to paint to the DOM inside the iframe
238
- * @param callback method to run after HTML has been written to iframe
238
+ * @param position screen position the message should appear in
239
+ * @param shouldAnimate if the in-app should animate in/out
239
240
* @param srMessage The message you want the screen reader to read when popping up the message
241
+ * @param topOffset how many px or % buffer between the in-app message and the top of the screen
242
+ * @param bottomOffset how many px or % buffer between the in-app message and the bottom of the screen
243
+ * @param rightOffset how many px or % buffer between the in-app message and the right of the screen
244
+ *
240
245
* @returns { HTMLIFrameElement }
241
246
*/
242
247
export const paintIFrame = (
@@ -251,6 +256,7 @@ export const paintIFrame = (
251
256
new Promise ( ( resolve : ( value : HTMLIFrameElement ) => void ) => {
252
257
const iframe = document . createElement ( 'iframe' ) ;
253
258
iframe . setAttribute ( 'id' , 'iterable-iframe' ) ;
259
+ iframe . setAttribute ( 'sandbox' , 'allow-same-origin' ) ;
254
260
/*
255
261
_display: none_ would remove the ability to set event handlers on elements
256
262
so instead we choose to hide it visibly with CSS but not actually remove
You can’t perform that action at this time.
0 commit comments