Damage control pass 2

This commit is contained in:
Daniel Scalzi
2017-05-17 05:03:09 -04:00
parent 75af2726db
commit c83809b0dc
7 changed files with 536 additions and 146 deletions

View File

@@ -146,6 +146,7 @@ class AssetGuard extends EventEmitter{
this.assets = new DLTracker([], 0)
this.libraries = new DLTracker([], 0)
this.files = new DLTracker([], 0)
this.forge = new DLTracker([], 0)
}
}
@@ -548,6 +549,16 @@ function validateLogConfig(versionData, basePath){
})
}
function validateForge(){
}
function _validateForgeAssets(forgePath){
}
/**
* This function will initiate the download processed for the specified identifiers. If no argument is
* given, all identifiers will be initiated. Note that in order for files to be processed you need to run

View File

@@ -3,6 +3,17 @@ const remote = require('electron').remote
const shell = require('electron').shell
const path = require('path')
$(document).on('ready', function(){
$(".toggle-btn input[type=radio]").addClass("visuallyhidden");
$(".toggle-btn input[type=radio]").change(function() {
if($(this).attr("name")) {
$(this).parent().addClass("success").siblings().removeClass("success")
} else {
$(this).parent().toggleClass("success")
}
})
})
/* Open web links in the user's default browser. */
$(document).on('click', 'a[href^="http"]', function(event) {
event.preventDefault();