pull/581/head^2
Mikael Finstad 2021-01-19 22:43:27 +01:00
rodzic e641865821
commit 803008b053
2 zmienionych plików z 1 dodań i 2 usunięć

Wyświetl plik

@ -1,6 +1,5 @@
const electron = require('electron'); // eslint-disable-line
const isDev = require('electron-is-dev');
const os = require('os');
const unhandled = require('electron-unhandled');
const menu = require('./menu');

Wyświetl plik

@ -33,7 +33,7 @@ export async function saveCsv(path, cutSegments) {
const formatDurationStr = (duration) => (duration != null ? formatDuration({ seconds: duration }) : '');
const mapSegments = (segments) => segments.map(({ start, end, name }) => [formatDurationStr(start), formatDurationStr(end), name])
const mapSegments = (segments) => segments.map(({ start, end, name }) => [formatDurationStr(start), formatDurationStr(end), name]);
export async function saveCsvHuman(path, cutSegments) {
const str = await csvStringifyAsync(mapSegments(cutSegments));