🍙 made yt video pause, since we use new tab now

This commit is contained in:
Shiba 2022-07-06 13:10:32 +00:00
parent c895d53253
commit 1eb21eb51f

View file

@ -49,7 +49,11 @@ import { getExtensionSettingsAsync, getSourcePlatfromSettingsFromHostname, getTa
fontSize: '14px',
textDecoration: 'none',
...target.platform.button.style?.button,
}}>
}}
onClick={() => findVideoElementAwait().then((videoElement) => {
videoElement.pause()
})}
>
<img src={target.platform.button.icon} height={16}
style={{ transform: 'scale(1.5)', ...target.platform.button.style?.icon }} />
<span>{target.platform.button.text}</span>