From 40741deac35a67b48071a55174461982bc921c55 Mon Sep 17 00:00:00 2001 From: Scott Pfeil Date: Mon, 10 Apr 2023 11:50:42 -0400 Subject: [PATCH] setup biometrics action --- MVMCore/MVMCore/LoadHandling/MVMCoreLoadRequestOperation.m | 4 ++++ MVMCore/MVMCore/MainProtocols/MVMCoreGlobalLoadProtocol.h | 2 ++ 2 files changed, 6 insertions(+) diff --git a/MVMCore/MVMCore/LoadHandling/MVMCoreLoadRequestOperation.m b/MVMCore/MVMCore/LoadHandling/MVMCoreLoadRequestOperation.m index ee714c3..a75cdb5 100644 --- a/MVMCore/MVMCore/LoadHandling/MVMCoreLoadRequestOperation.m +++ b/MVMCore/MVMCore/LoadHandling/MVMCoreLoadRequestOperation.m @@ -357,6 +357,10 @@ return; } + if ([[MVMCoreObject sharedInstance].globalLoadDelegate respondsToSelector:@selector(modifyJSON:)]) { + jsonDictionary = [[MVMCoreObject sharedInstance].globalLoadDelegate modifyJSON:jsonDictionary]; + } + loadObject.responseJSON = jsonDictionary; // Store the new page data if we didn't load page data from the cache. diff --git a/MVMCore/MVMCore/MainProtocols/MVMCoreGlobalLoadProtocol.h b/MVMCore/MVMCore/MainProtocols/MVMCoreGlobalLoadProtocol.h index 65ea153..bd2c82d 100644 --- a/MVMCore/MVMCore/MainProtocols/MVMCoreGlobalLoadProtocol.h +++ b/MVMCore/MVMCore/MainProtocols/MVMCoreGlobalLoadProtocol.h @@ -16,6 +16,8 @@ @optional +- (nonnull NSDictionary *)modifyJSON:(nonnull NSDictionary *)json; + // Provides the desired error screen for the native error. Called on the main thread. If set, any native errors or NSURLErrorDomain errors will use a native screen. - (nullable UIViewController *)getNativeScreenForRequestError:(nonnull MVMCoreErrorObject *)errorObject requestObject:(nonnull MVMCoreRequestParameters *)requestObject;