Beginning work on launcher.

This commit is contained in:
Daniel Scalzi
2017-05-17 17:44:46 -04:00
parent 771b0984f1
commit cc25f2c2e0
4 changed files with 97 additions and 37 deletions

View File

@@ -12,13 +12,23 @@ $(document).on('ready', function(){
$(this).parent().toggleClass("success")
}
})
process.stdout.on('data', (data) => {
$('#launcher-log').append(data.toString('utf8'))
//console.log('minecraft:', data.toString('utf8'))
})
process.stderr.on('data', (data) => {
$('#launcher-log').append(data.toString('utf8'))
//console.log('minecraft:', data.toString('utf8'))
})
console.log('test')
console.debug('test')
})
/* Open web links in the user's default browser. */
$(document).on('click', 'a[href^="http"]', function(event) {
event.preventDefault();
//testdownloads()
shell.openExternal(this.href)
testdownloads()
//shell.openExternal(this.href)
});
testdownloads = async function(){