TF-4142 Close link overlay when click email content view
This commit is contained in:
@@ -405,4 +405,18 @@ class HtmlInteraction {
|
||||
}
|
||||
</script>
|
||||
''';
|
||||
|
||||
static String scriptsHandleIframeClickListener(String viewId) => '''
|
||||
<script type="text/javascript">
|
||||
document.addEventListener('click', function (e) {
|
||||
try {
|
||||
const payload = {
|
||||
view: '$viewId',
|
||||
type: 'toDart: iframeClick',
|
||||
};
|
||||
window.parent.postMessage(JSON.stringify(payload), "*");
|
||||
} catch (_) {}
|
||||
});
|
||||
</script>
|
||||
''';
|
||||
}
|
||||
Reference in New Issue
Block a user