mirror of
https://github.com/ilyakooo0/urbit.git
synced 2025-01-03 12:42:48 +03:00
chat, publish: add catch to util promise
This commit is contained in:
parent
f58b3d6d0c
commit
e946dc657f
@ -92,5 +92,7 @@ export function writeText(str) {
|
||||
document.getSelection().removeAllRanges();
|
||||
|
||||
success ? resolve() : reject();
|
||||
});
|
||||
}).catch(function (error) {
|
||||
console.error(error);
|
||||
});;
|
||||
};
|
@ -67,5 +67,7 @@ export function writeText(str) {
|
||||
document.getSelection().removeAllRanges();
|
||||
|
||||
success ? resolve() : reject();
|
||||
});
|
||||
}).catch(function (error) {
|
||||
console.error(error);
|
||||
});;
|
||||
};
|
Loading…
Reference in New Issue
Block a user