From 0619eaa176f033db92ac6e633386d1e764a66b7b Mon Sep 17 00:00:00 2001 From: Jack Matthews Date: Sat, 13 May 2023 04:03:10 -0400 Subject: [PATCH] [Main] Revert "execute Discord how they wish, execute Vendetta asyncronously" This reverts commit 18fbf6da494317c4667480ed434100220dfe5bae. --- Sources/VendettaTweak/Tweak.x.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/VendettaTweak/Tweak.x.swift b/Sources/VendettaTweak/Tweak.x.swift index cccb1ee..253045c 100644 --- a/Sources/VendettaTweak/Tweak.x.swift +++ b/Sources/VendettaTweak/Tweak.x.swift @@ -82,7 +82,7 @@ class LoadHook: ClassHook { 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 { 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) }