mirror of https://github.com/VERT-sh/VERT.git
fix: webcodecs toast visible on initial load
This commit is contained in:
parent
290c6d2f70
commit
f19f2095b6
|
|
@ -29,6 +29,7 @@ import type {
|
|||
} from "$lib/types/conversion-settings";
|
||||
import { CONVERSION_BITRATES, SAMPLE_RATES } from "./ffmpeg.svelte";
|
||||
import { ToastManager } from "$lib/util/toast.svelte";
|
||||
import { browser } from "$app/environment";
|
||||
|
||||
// codec compatibility stuff, based on mediabunny's docs
|
||||
// https://mediabunny.dev/guide/supported-formats-and-codecs#compatibility-table
|
||||
|
|
@ -219,6 +220,8 @@ export class MediabunnyConverter extends Converter {
|
|||
constructor() {
|
||||
super();
|
||||
|
||||
if (!browser) return;
|
||||
|
||||
this.log = (msg) => log(["converters", this.name], msg);
|
||||
this.error = (msg) => error(["converters", this.name], msg);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue