[Main] execute Discord how they wish, execute Vendetta asyncronously
This commit is contained in:
parent
9dd1de83d8
commit
18fbf6da49
1 changed files with 2 additions and 2 deletions
|
|
@ -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: false)
|
||||
orig.executeApplicationScript(script, url: url, async: async)
|
||||
|
||||
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: false)
|
||||
orig.executeApplicationScript(vendetta!, url: source, async: true)
|
||||
} else {
|
||||
os_log("Unable to fetch vendetta.js", log: vendettaLog, type: .error)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue