changes
This commit is contained in:
parent
7b5113cf45
commit
1f1c07ed6a
@ -47,10 +47,10 @@ class MasterViewController: UIViewController, UITableViewDelegate, UITableViewDa
|
|||||||
requestParameters?.parameters = ["category": "Atoms", "filename": "Button"]
|
requestParameters?.parameters = ["category": "Atoms", "filename": "Button"]
|
||||||
requestParameters?.alternateBaseURL = URL(string: "http://\(ip)/v1/fetchAllMolecules")
|
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 {
|
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 }
|
guard error == nil else { return }
|
||||||
|
|
||||||
@ -160,10 +160,9 @@ class MasterViewController: UIViewController, UITableViewDelegate, UITableViewDa
|
|||||||
requestParameters?.parameters = ["category": "Atoms", "filename": "Button"]
|
requestParameters?.parameters = ["category": "Atoms", "filename": "Button"]
|
||||||
requestParameters?.alternateBaseURL = URL(string: "http://\(ip)/v1/fetchAllMolecules")
|
requestParameters?.alternateBaseURL = URL(string: "http://\(ip)/v1/fetchAllMolecules")
|
||||||
|
|
||||||
let errorLocation = (MVMCoreLoadHandler.sharedGlobal()?.errorLocation(forRequest: MVMCoreSessionTimeHandler.sharedSession(), pageType: "", modules: ""))!
|
|
||||||
|
|
||||||
MVMCoreDispatchUtility.performBlock(inBackground: {
|
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 }
|
guard error == nil else { return }
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user