diff --git a/js/index.js b/js/index.js index 8e7b6d4..f999fef 100644 --- a/js/index.js +++ b/js/index.js @@ -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(); diff --git a/lib/customize.js b/lib/customize.js index d8a45f4..7d0251f 100644 --- a/lib/customize.js +++ b/lib/customize.js @@ -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 @@ -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(" sending app"); window.postMessage({ type : "app", - data : app + data : app, + options }); }