Skip to content

Commit

Permalink
moonbase: actually fix crash screen patches
Browse files Browse the repository at this point in the history
  • Loading branch information
Cynosphere committed Nov 3, 2024
1 parent b726399 commit 3a00f74
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/core-extensions/src/moonbase/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const patches: Patch[] = [
{
// CvQlAA mapped to ERRORS_ACTION_TO_TAKE
// FIXME: Better patch find?
match: /,(\(0,.\.jsx\))\("p",{children:.\.[a-zA-Z]+\.intl\.string\(.\..\.CvQlAA\)}\)/,
match: /,(\(0,.\.jsx\))\("p",{children:.\.intl\.string\(.\..\.CvQlAA\)}\)/,
replacement: (_, createElement) =>
`,${createElement}(require("moonbase_crashScreen").UpdateText,{state:this.state,setState:this.setState.bind(this)})`
},
Expand All @@ -21,8 +21,9 @@ export const patches: Patch[] = [
},

// add update button
// +hivLS -> ERRORS_RELOAD
{
match: /(?<=\.ERRORS_RELOAD}\),(\(0,.\.jsx\))\(.,{}\))/,
match: /(?<=\["\+hivLS"\]\)}\),(\(0,.\.jsx\))\(.,{}\))/,
replacement: (_, createElement) =>
`,${createElement}(require("moonbase_crashScreen").UpdateButton,{state:this.state,setState:this.setState.bind(this)})`
}
Expand Down

0 comments on commit 3a00f74

Please sign in to comment.