forked from vendetta-mod/Vendetta
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: rounded stuff, fixed error screen to have more info
- Loading branch information
Showing
4 changed files
with
11 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,22 @@ | ||
import { ClientInfoManager } from "@lib/native"; | ||
import { NavigationNative } from "./lib/metro/common"; | ||
import Developer from "./ui/settings/pages/Developer"; | ||
import { getDebugInfo } from "./lib/debug"; | ||
|
||
// This logs in the native logging implementation, e.g. logcat | ||
console.log("Hello from Opti!"); | ||
|
||
// Make 'freeze' and 'seal' do nothing | ||
Object.freeze = Object; | ||
Object.seal = Object; | ||
const debugInfo = getDebugInfo(); | ||
|
||
import(".").then((m) => m.default()).catch((e) => { | ||
console.log(e?.stack ?? e.toString()); | ||
console.log("Opti encountered an issue. " + e?.stack ?? e.toString()); | ||
alert([ | ||
"Failed to load Opti!\n", | ||
`Build Number: ${ClientInfoManager.Build}`, | ||
"Failed to load Opti! The error is in console logs.\n", | ||
`Build: ${ClientInfoManager.Build}`, | ||
`Opti: ${__optiVersion}`, | ||
e?.stack || e.toString(), | ||
`Discord Version: ${debugInfo.discord.version}` | ||
].join("\n")); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters