This commit is contained in:
Kevin G Christiano 2020-05-27 17:01:33 -04:00
parent 7b5113cf45
commit 1f1c07ed6a

View File

@ -47,10 +47,10 @@ class MasterViewController: UIViewController, UITableViewDelegate, UITableViewDa
requestParameters?.parameters = ["category": "Atoms", "filename": "Button"]
requestParameters?.alternateBaseURL = URL(string: "http://\(ip)/v1/fetchAllMolecules")
let errorLocation = (MVMCoreLoadHandler.sharedGlobal()?.errorLocation(forRequest: MVMCoreSessionTimeHandler.sharedSession(), pageType: "", modules: ""))!
// let errorLocation = (MVMCoreLoadHandler.sharedGlobal()?.errorLocation(forRequest: MVMCoreSessionTimeHandler.sharedSession(), pageType: "", modules: ""))!
DispatchQueue.global(qos: .default).async {
MVMCoreLoadHandler.sharedGlobal()?.sendRequest(requestParameters!, locationForError: errorLocation, requestFinished: { json, error in
MVMCoreLoadHandler.sharedGlobal()?.sendRequest(requestParameters!, locationForError: "", requestFinished: { json, error in
guard error == nil else { return }
@ -160,10 +160,9 @@ class MasterViewController: UIViewController, UITableViewDelegate, UITableViewDa
requestParameters?.parameters = ["category": "Atoms", "filename": "Button"]
requestParameters?.alternateBaseURL = URL(string: "http://\(ip)/v1/fetchAllMolecules")
let errorLocation = (MVMCoreLoadHandler.sharedGlobal()?.errorLocation(forRequest: MVMCoreSessionTimeHandler.sharedSession(), pageType: "", modules: ""))!
MVMCoreDispatchUtility.performBlock(inBackground: {
MVMCoreLoadHandler.sharedGlobal()?.sendRequest(requestParameters!, locationForError: errorLocation, requestFinished: { json, error in
MVMCoreLoadHandler.sharedGlobal()?.sendRequest(requestParameters!, locationForError: "", requestFinished: { json, error in
guard error == nil else { return }