()
| 89 | }, [ref, setContainer]); |
| 90 | |
| 91 | function handleBeautifyClick() { |
| 92 | try { |
| 93 | const beautifiedBody = beautify(script, { format: 'js' }); |
| 94 | setScript(beautifiedBody); |
| 95 | } catch (e) { |
| 96 | errorToast('Could not format script.', toast); |
| 97 | } |
| 98 | } |
| 99 | |
| 100 | return ( |
| 101 | <div style={{ height: '100%' }}> |
nothing calls this directly
no test coverage detected