Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrikvedvik committed Feb 27, 2024
1 parent e6edb3d commit 8e657b4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
10 changes: 7 additions & 3 deletions pages/transcription/[id].vue
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,13 @@ const handleWordFocus = (word: Word) => {
return;
}
const seek = (localStorage.seekOnFocus ?? "true") === "true";
if (seek) el.fastSeek(word.start);
if (seek) {
if (el.fastSeek) {
el.fastSeek(word.start);
} else {
el.currentTime = word.start;
}
}
};
watch(segments, () => {
Expand All @@ -110,9 +116,7 @@ const seekOnFocus = computed({
return (localStorage.seekOnFocus ?? "true") === "true";
},
set(v) {
console.log(v);
localStorage.seekOnFocus = v ? "true" : "false";
console.log(localStorage.seekOnFocus);
},
});
</script>
Expand Down
2 changes: 0 additions & 2 deletions server/api/permissions/set.put.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,5 @@ export default defineEventHandler(async (event) => {
permissions: Permissions;
}>(event);

console.log(request);

await setPermissions(request.email, request.permissions);
});
2 changes: 1 addition & 1 deletion utils/languages.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const bmmLanguages = ["en", "no", "fr", "de", "nl", "da"] as const;
export const bmmLanguages = ["en", "no", "nb", "fr", "de", "nl", "da"] as const;

0 comments on commit 8e657b4

Please sign in to comment.