Skip to content
This repository was archived by the owner on Feb 6, 2024. It is now read-only.

Commit

Permalink
[Main] Switch to globalThis
Browse files Browse the repository at this point in the history
  • Loading branch information
FieryFlames committed May 13, 2023
1 parent 18fbf6d commit db88906
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Resources/identity.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Sources/VendettaTweak/Tweak.x.swift
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ class LoadHook: ClassHook<RCTCxxBridge> {
contentsOf: documentDirectory.appendingPathComponent("vendetta_theme.json"))
{
orig.executeApplicationScript(
"this.__vendetta_theme=\(themeString)".data(using: .utf8)!, url: source, async: false)
"globalThis.__vendetta_theme=\(themeString)".data(using: .utf8)!, url: source, async: false)
let theme = try? JSONDecoder().decode(Theme.self, from: themeString.data(using: .utf8)!)
if let semanticColors = theme?.data.semanticColors { swizzleDCDThemeColor(semanticColors) }
if let rawColors = theme?.data.rawColors { swizzleUIColor(rawColors) }
Expand Down

0 comments on commit db88906

Please sign in to comment.