Skip to content

Commit

Permalink
chore
Browse files Browse the repository at this point in the history
  • Loading branch information
Delusoire committed Jul 17, 2024
1 parent 24e6996 commit cf190c1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/stdlib/src/registers/panel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ declare global {
}

globalThis.__renderPanel = (state: string) => {
if (!state.startsWith("bespoke")) {
if (!state.startsWith("bespoke_")) {
return null;
}

Expand All @@ -96,7 +96,7 @@ let STATES: Record<string, any> = {};
let ACTIONS: Record<string, any> = {};

transformer(
emit => str => {
(emit) => (str) => {
str = str.replace(
/(=\(0,[a-zA-Z_\$][\w\$]*\.[a-zA-Z_\$][\w\$]*\)\(\{id:"RightPanelState)/,
"=__Machine$1",
Expand Down Expand Up @@ -124,7 +124,7 @@ transformer(
v.on = new Proxy(v.on!, {
get(target, p, receiver) {
// @ts-ignore
if (p.startsWith("bespoke")) {
if (p.startsWith("bespoke_")) {
// @ts-ignore
return ON[p];
}
Expand Down

0 comments on commit cf190c1

Please sign in to comment.