mirror of
https://github.com/stashapp/stash.git
synced 2026-02-08 00:12:55 +01:00
after prettier
This commit is contained in:
parent
44eb6447f9
commit
a3d6a0342b
2 changed files with 10 additions and 7 deletions
|
|
@ -59,7 +59,7 @@ fragment ConfigGeneralData on ConfigGeneralResult {
|
|||
liveTranscodeInputArgs
|
||||
liveTranscodeOutputArgs
|
||||
drawFunscriptHeatmapRange
|
||||
|
||||
|
||||
scraperPackageSources {
|
||||
name
|
||||
url
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue