chat, publish: add catch to util promise

This commit is contained in:
Matilde Park 2020-03-10 20:55:05 -04:00
parent f58b3d6d0c
commit e946dc657f
2 changed files with 6 additions and 2 deletions

View File

@ -92,5 +92,7 @@ export function writeText(str) {
document.getSelection().removeAllRanges();
success ? resolve() : reject();
});
}).catch(function (error) {
console.error(error);
});;
};

View File

@ -67,5 +67,7 @@ export function writeText(str) {
document.getSelection().removeAllRanges();
success ? resolve() : reject();
});
}).catch(function (error) {
console.error(error);
});;
};