Update extension.js

This commit is contained in:
erikraft 2025-06-18 17:03:48 -03:00
parent d637415a44
commit 1865a8430d
1 changed files with 10 additions and 1 deletions

View File

@ -63,8 +63,17 @@ class ErikrafTDropViewProvider {
height="844"
style="border: none; border-radius: 16px;"
allow="clipboard-write; camera; microphone; autoplay;"
sandbox="allow-same-origin allow-scripts allow-popups allow-forms"
sandbox="allow-same-origin allow-scripts allow-popups allow-forms allow-downloads"
referrerpolicy="strict-origin-when-cross-origin"
></iframe>
<script>
// Handle external links from iframe
window.addEventListener('message', (event) => {
if (event.data.type === 'external-link') {
parent.postMessage({ type: 'open-link', url: event.data.url }, '*');
}
});
</script>
</body>
</html>
`;