-
Notifications
You must be signed in to change notification settings - Fork 1
Communicate progress #1
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is needed
Description
The main window should be able to communicate with the splash screen via websockets to update a progress bar and message as it is loading.
// index.html
nwSplasher.sendProgress({
percent: 33,
message: 'Encabulating Unilateral Phase Detractors'
});This makes me want to do a version bump and change the API to an options object
// spash.html
nwSplasher.loadAppWindowInBackground({
url: 'index.html',
newWindowOptions: {},
port: 4443,
onProgressUpdate: function (data) {
console.log(data.percent, data.message);
})
});but could stay as is and just be another arg:
// spash.html
function onProgressUpdate (data) {
console.log(data.percent, data.message);
}
nwSplasher.loadAppWindowInBackground('index.html', {}, 4443, onProgressUpdate);Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is needed