1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-15 23:00:36 +02:00

Refactor to move state changes to browser process

This commit is contained in:
Laurent Cozic
2017-11-05 00:17:48 +00:00
parent cc277018b7
commit dbf51382c8
13 changed files with 241 additions and 92 deletions

View File

@ -15,8 +15,12 @@ shim.fs = null;
shim.FileApiDriverLocal = null;
shim.readLocalFileBase64 = () => { throw new Error('Not implemented'); }
shim.uploadBlob = () => { throw new Error('Not implemented'); }
shim.setInterval = setInterval;
shim.clearInterval = clearInterval;
shim.setInterval = function(fn, interval) {
return setInterval(fn, interval);
}
shim.clearInterval = function(id) {
return clearInterval(id);
}
shim.detectAndSetLocale = null;
module.exports = { shim };