after prettier

This commit is contained in:
Philip Wang 2026-01-22 19:55:09 -05:00
parent 44eb6447f9
commit a3d6a0342b
2 changed files with 10 additions and 7 deletions

View file

@ -59,7 +59,7 @@ fragment ConfigGeneralData on ConfigGeneralResult {
liveTranscodeInputArgs
liveTranscodeOutputArgs
drawFunscriptHeatmapRange
scraperPackageSources {
name
url

View file

@ -18,17 +18,20 @@ export const ExternalPlayerButton: React.FC<IExternalPlayerButtonProps> = ({
const isAppleDevice = /(ipod|iphone|ipad)/i.test(navigator.userAgent);
const intl = useIntl();
const { configuration } = useConfigurationContext();
const interfaceConfig = configuration?.interface;
const uiConfig = configuration?.ui;
const showOpenExternal = uiConfig?.showOpenExternal??true;
const showOpenExternal = uiConfig?.showOpenExternal ?? true;
const { paths } = scene;
const { files } = scene;
const { path } = files[0];
const fileName = path.split('/').pop()?.split('\\').pop()??'';
if (!paths || !paths.stream || (!isAndroid && !isAppleDevice && !showOpenExternal))
return <span />;
const fileName = path.split("/").pop()?.split("\\").pop() ?? "";
if (
!paths ||
!paths.stream ||
(!isAndroid && !isAppleDevice && !showOpenExternal)
)
return <span />;
const { stream } = paths;
const title = objectTitle(scene);