Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sendCustomizedApp() allows a noFinish setting #57

Merged
merged 3 commits into from
Jan 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ function handleCustomApp(appTemplate) {

getInstalledApps()
.then(()=>checkDependencies(app))
.then(()=>Comms.uploadApp(app,{device:device, language:LANGUAGE}))
.then(()=>Comms.uploadApp(app,{device:device, language:LANGUAGE, noFinish: msg.options && msg.options.noFinish}))
.then(()=>{
Progress.hide({sticky:true});
resolve();
Expand Down
8 changes: 6 additions & 2 deletions lib/customize.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ onInit({
});
```

Pass `{ noFinish: true }` as the second argument to skip reloading
the connected device.

If no device is connected, some fields may not be populated.

This exposes a 'Puck' object (a simple version of
Expand All @@ -58,11 +61,12 @@ Util.saveCSV(filename, csvData) // pop up a dialog to save a CSV
Util.showModal(title) // show a modal screen over everything in this window
Util.hideModal() // hide the modal from showModal
*/
function sendCustomizedApp(app) {
function sendCustomizedApp(app, options) {
console.log("<CUSTOM> sending app");
window.postMessage({
type : "app",
data : app
data : app,
options
});
}

Expand Down
Loading