[Main] Revert "execute Discord how they wish, execute Vendetta asyncronously"

This reverts commit 18fbf6da49.
This commit is contained in:
Jack Matthews 2023-05-13 04:03:10 -04:00
parent db8890626e
commit 0619eaa176
No known key found for this signature in database

View file

@ -82,7 +82,7 @@ class LoadHook: ClassHook<RCTCxxBridge> {
group.wait()
os_log("Executing original script", log: vendettaLog, type: .info)
orig.executeApplicationScript(script, url: url, async: async)
orig.executeApplicationScript(script, url: url, async: false)
if let themeString = try? String(
contentsOf: documentDirectory.appendingPathComponent("vendetta_theme.json"))
@ -97,7 +97,7 @@ class LoadHook: ClassHook<RCTCxxBridge> {
if vendetta != nil {
os_log("Executing vendetta.js", log: vendettaLog, type: .info)
orig.executeApplicationScript(vendetta!, url: source, async: true)
orig.executeApplicationScript(vendetta!, url: source, async: false)
} else {
os_log("Unable to fetch vendetta.js", log: vendettaLog, type: .error)
}