Skip to content

Commit 178c452

Browse files
authored
Merge pull request #22 from TheJayMann/main
Use `create()` factory method on paste
2 parents 47a4824 + fe0f09c commit 178c452

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Frontend/FileHandler.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export class FileHandler {
3636

3737
try {
3838
const detected = AutoFormat.from(text)
39-
const data = new ChaptersJson(detected)
39+
const data = ChaptersJson.create(detected, detected.duration)
4040
gtag('event', 'ui', {
4141
action: 'external',
4242
origin: 'paste',

0 commit comments

Comments
 (0)