1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-12 22:57:38 +02:00

All: Optimised encryption and decryption of items so that it doesn't freeze the UI, especially on mobile

This commit is contained in:
Laurent Cozic
2018-06-25 18:14:57 +01:00
parent 84adf64271
commit fea83e28c4
5 changed files with 66 additions and 15 deletions

View File

@ -123,6 +123,12 @@ function shimInit() {
shim.openUrl = (url) => {
Linking.openURL(url);
}
shim.waitForFrame = () => {
return new Promise(function(resolve, reject) {
requestAnimationFrame(function() { resolve(); });
});
}
}
module.exports = { shimInit };