From 1f1c07ed6afdbd3c1a5519ac47ea10e03d56c824 Mon Sep 17 00:00:00 2001 From: Kevin G Christiano Date: Wed, 27 May 2020 17:01:33 -0400 Subject: [PATCH] changes --- JSONCreator_iOS/JSONCreator/MasterViewController.swift | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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 }