Recipes
Add Custom Javascript to your Desktop App
INFO
We use the most up to date version of Chromium so you can use the latest browser features when your app is running as a desktop app.
You can use the isDesktopApp()
fucntion to add different behaviour to your app when it is running as a desktop app.
Alternatively, We expose a window.todesktop
object if you want a quick solution.
If you have a lot of javascript in your desktop app then we recommend separating all of your desktop specific logic into a separate javascript file.