This app should allow you to swipe to leave the launcher and switch to the clock however it doesn't seem to work. At the moment it tries to access global.FILE which seems, for me at least, to always be undefined.
I considered replacing E.showLauncher() however that ultimately leads to load() being run so I couldn't find a nice way of doing it there. I think the way forward is implement it how it currently is intended to work but find the correct way of finding out what is currently displaying.
Is there a way of finding what file was last run on load()?
Thanks
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
This app should allow you to swipe to leave the launcher and switch to the clock however it doesn't seem to work. At the moment it tries to access global.FILE which seems, for me at least, to always be undefined.
I considered replacing E.showLauncher() however that ultimately leads to load() being run so I couldn't find a nice way of doing it there. I think the way forward is implement it how it currently is intended to work but find the correct way of finding out what is currently displaying.
Is there a way of finding what file was last run on load()?
Thanks