Update extension.js
This commit is contained in:
		
							parent
							
								
									d637415a44
								
							
						
					
					
						commit
						1865a8430d
					
				| 
						 | 
					@ -63,8 +63,17 @@ class ErikrafTDropViewProvider {
 | 
				
			||||||
          height="844" 
 | 
					          height="844" 
 | 
				
			||||||
          style="border: none; border-radius: 16px;"
 | 
					          style="border: none; border-radius: 16px;"
 | 
				
			||||||
          allow="clipboard-write; camera; microphone; autoplay;"
 | 
					          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>
 | 
					        ></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>
 | 
					      </body>
 | 
				
			||||||
      </html>
 | 
					      </html>
 | 
				
			||||||
    `;
 | 
					    `;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue