Skip to content
This repository has been archived by the owner on Jun 19, 2024. It is now read-only.

Commit

Permalink
removed plugin console log
Browse files Browse the repository at this point in the history
  • Loading branch information
zrodevkaan committed Mar 17, 2024
1 parent b2d8506 commit 7353e2f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
9 changes: 8 additions & 1 deletion .idea/.idea.RepluggedPlugins.dir/.idea/workspace.xml

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

3 changes: 1 addition & 2 deletions plugins/dev.kaan.Recovery/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ const { FormSwitch }: any = webpack.getByProps("FormSwitch")

export function start() {
injector.after(ErrorScreen.prototype, "render", (a: any, b, c: {state: {error: {message: String,stack: String}}, setState: ({}) => void}) => {
console.log(a, b, c);
const children = b?.props?.action?.props?.children;
if (!children) return;
if (!c.state.error) return;
Expand All @@ -27,7 +26,7 @@ export function start() {
Recover Discord
</Button>,
<div
className={"recovery-parse"}
className={"recovery-parse"} // this breaks BetterCodeBlocks.. sorry
>
{parse(`\`\`\`${c.state?.error.stack}\`\`\``)}
</div>
Expand Down

0 comments on commit 7353e2f

Please sign in to comment.