WIP
This commit is contained in:
parent
8d2d3617c3
commit
54d6dc3dc6
6 changed files with 40 additions and 50 deletions
|
|
@ -623,17 +623,16 @@ function emitUpdReaction(emoji: string, delta: number) {
|
|||
}
|
||||
|
||||
watch(convert, (newBlob) => {
|
||||
if (converturl.value && converturl.value.url) {
|
||||
URL.revokeObjectURL(converturl.value.url);
|
||||
}
|
||||
|
||||
if (newBlob) {
|
||||
converturl.value = { url: newBlob };
|
||||
} else {
|
||||
converturl.value = null;
|
||||
}
|
||||
try {
|
||||
if (newBlob) {
|
||||
converturl.value = { url: newBlob };
|
||||
} else {
|
||||
converturl.value = null;
|
||||
}
|
||||
} catch (error) {
|
||||
console.error('Failed to create URL:', error);
|
||||
}
|
||||
});
|
||||
console.log(converturl)
|
||||
|
||||
onUnmounted(() => {
|
||||
if (converturl.value && converturl.value.url) {
|
||||
|
|
|
|||
|
|
@ -558,16 +558,6 @@ function loadConversation() {
|
|||
}
|
||||
|
||||
watch(convert, (newBlob) => {
|
||||
/*
|
||||
try {
|
||||
if (converturl.value && converturl.value.url) {
|
||||
URL.revokeObjectURL(converturl.value.url);
|
||||
}
|
||||
} catch (error) {
|
||||
console.error('Failed to revoke URL:', error);
|
||||
}
|
||||
*/
|
||||
|
||||
try {
|
||||
if (newBlob) {
|
||||
converturl.value = { url: newBlob };
|
||||
|
|
@ -577,7 +567,6 @@ watch(convert, (newBlob) => {
|
|||
} catch (error) {
|
||||
console.error('Failed to create URL:', error);
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
onUnmounted(() => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue