diff --git a/JSONCreator_iOS/JSONCreator/MasterViewController.swift b/JSONCreator_iOS/JSONCreator/MasterViewController.swift index 8ca4d76..8bf7c41 100644 --- a/JSONCreator_iOS/JSONCreator/MasterViewController.swift +++ b/JSONCreator_iOS/JSONCreator/MasterViewController.swift @@ -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 }