Skip to content

interface.html: Controlling the current Bangle.js app #7759

Discussion options

You must be logged in to vote

You could use something like Puck.write("if (global.__FILE__=='myapp.app.js')load()\n", callback) and then delay a bit as you suggest to load out of your app if you were in it.

... or what about writing your updated timer file and then doing something like:

Puck.write("if (global.__FILE__=='myapp.app.js')reloadMyTimers()\n")`

Where reloadMyTimers() is a function in your app that'll cause it to reload the data that you just wrote?

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by ticalc-travis
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants