mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-05-05 13:07:44 +03:00
Fix stringification
This commit is contained in:
parent
298207dc66
commit
407ba987ef
@ -56,7 +56,7 @@ export default function System() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const onCopyFfprobe = async () => {
|
const onCopyFfprobe = async () => {
|
||||||
copy(JSON.stringify(JSON.stringify(state.ffprobe), jsonCleaner, 2));
|
copy(JSON.stringify(state.ffprobe).replace(/[\\\s]+/gi, ''));
|
||||||
setState({ ...state, ffprobe: '', showFfprobe: false });
|
setState({ ...state, ffprobe: '', showFfprobe: false });
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -79,7 +79,7 @@ export default function System() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const onCopyVainfo = async () => {
|
const onCopyVainfo = async () => {
|
||||||
copy(JSON.stringify(JSON.stringify(state.vainfo), jsonCleaner, 2));
|
copy(JSON.stringify(state.vainfo).replace(/[\\\s]+/gi, ''));
|
||||||
setState({ ...state, vainfo: '', showVainfo: false });
|
setState({ ...state, vainfo: '', showVainfo: false });
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user