0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-08-06 08:57:38 +00:00

Merge pull request #4908 from ReinaSweet/sandbox-renderer-iframe

Add a sandbox property to the renderer iframe
This commit is contained in:
G.Ambatte
2026-07-26 09:51:19 +12:00
committed by GitHub
@@ -353,6 +353,7 @@ const BrewRenderer = (props)=>{
style={{ width: '100%', height: '100%', visibility: state.visibility }} style={{ width: '100%', height: '100%', visibility: state.visibility }}
contentDidMount={frameDidMount} contentDidMount={frameDidMount}
onClick={()=>{emitClick();}} onClick={()=>{emitClick();}}
sandbox="allow-same-origin allow-modals allow-top-navigation"
> >
<div className='brewRenderer' <div className='brewRenderer'
onKeyDown={handleControlKeys} onKeyDown={handleControlKeys}