Fix stringification

This commit is contained in:
Nick Mowen 2023-02-25 16:39:59 -07:00
parent 298207dc66
commit 407ba987ef

View File

@ -56,7 +56,7 @@ export default function System() {
};
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 });
};
@ -79,7 +79,7 @@ export default function System() {
};
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 });
};