|
|
|
@ -41,7 +41,7 @@ function NoFileLoaded({ mifiLink, currentCutSeg, onClick, darkMode }: {
|
|
|
|
|
|
|
|
|
|
|
|
{mifiLink && typeof mifiLink === 'object' && 'loadUrl' in mifiLink && typeof mifiLink.loadUrl === 'string' && mifiLink.loadUrl ? (
|
|
|
|
{mifiLink && typeof mifiLink === 'object' && 'loadUrl' in mifiLink && typeof mifiLink.loadUrl === 'string' && mifiLink.loadUrl ? (
|
|
|
|
<div style={{ position: 'relative', margin: '.3em', width: '24em', height: '8em' }}>
|
|
|
|
<div style={{ position: 'relative', margin: '.3em', width: '24em', height: '8em' }}>
|
|
|
|
<iframe src={`${mifiLink.loadUrl}#dark=${darkMode ? 'true' : 'false'}`} title="iframe" style={{ background: 'rgba(0,0,0,0)', border: 'none', pointerEvents: 'none', width: '100%', height: '100%', position: 'absolute' }} />
|
|
|
|
<iframe src={`${mifiLink.loadUrl}#dark=${darkMode ? 'true' : 'false'}`} title="iframe" style={{ background: 'rgba(0,0,0,0)', border: 'none', pointerEvents: 'none', width: '100%', height: '100%', position: 'absolute', colorScheme: 'initial' }} />
|
|
|
|
{/* eslint-disable-next-line jsx-a11y/interactive-supports-focus */}
|
|
|
|
{/* eslint-disable-next-line jsx-a11y/interactive-supports-focus */}
|
|
|
|
<div style={{ width: '100%', height: '100%', position: 'absolute', cursor: 'pointer' }} role="button" onClick={(e) => { e.stopPropagation(); if ('targetUrl' in mifiLink && typeof mifiLink.targetUrl === 'string') electron.shell.openExternal(mifiLink.targetUrl); }} />
|
|
|
|
<div style={{ width: '100%', height: '100%', position: 'absolute', cursor: 'pointer' }} role="button" onClick={(e) => { e.stopPropagation(); if ('targetUrl' in mifiLink && typeof mifiLink.targetUrl === 'string') electron.shell.openExternal(mifiLink.targetUrl); }} />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|