Skip to content

Commit

Permalink
Merge pull request #57 from bobrippling/fix/fwupdate-reset
Browse files Browse the repository at this point in the history
sendCustomizedApp() allows a noFinish setting
  • Loading branch information
gfwilliams committed Jan 17, 2024
2 parents c97b785 + 41e586e commit e6a65a8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
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

0 comments on commit e6a65a8

Please sign in to comment.