diff --git a/.changeset/great-rules-knock.md b/.changeset/great-rules-knock.md new file mode 100644 index 00000000..f5afe20b --- /dev/null +++ b/.changeset/great-rules-knock.md @@ -0,0 +1,6 @@ +--- +'overlay-react-ts': patch +'@bedframe/cli': patch +--- + +in/else instead of ternary diff --git a/examples/overlay-react-ts/src/scripts/content.tsx b/examples/overlay-react-ts/src/scripts/content.tsx index d0f8d05d..3bcbe357 100644 --- a/examples/overlay-react-ts/src/scripts/content.tsx +++ b/examples/overlay-react-ts/src/scripts/content.tsx @@ -17,7 +17,11 @@ export const frameConfig: FrameConfig = { export function mountOrUnmountIframe(): void { const FrameId = (frameConfig.iframe as { id: string }).id - document.getElementById(FrameId) === null ? mountFrame() : unmountIframe() + if (document.getElementById(FrameId) === null) { + mountFrame() + } else { + unmountIframe() + } } export function openOrCloseExtension(): void { diff --git a/packages/cli/public/stubs/scripts/content.tsx b/packages/cli/public/stubs/scripts/content.tsx index d0f8d05d..3bcbe357 100644 --- a/packages/cli/public/stubs/scripts/content.tsx +++ b/packages/cli/public/stubs/scripts/content.tsx @@ -17,7 +17,11 @@ export const frameConfig: FrameConfig = { export function mountOrUnmountIframe(): void { const FrameId = (frameConfig.iframe as { id: string }).id - document.getElementById(FrameId) === null ? mountFrame() : unmountIframe() + if (document.getElementById(FrameId) === null) { + mountFrame() + } else { + unmountIframe() + } } export function openOrCloseExtension(): void { diff --git a/packages/cli/src/lib/make/utils/write-package-json.ts b/packages/cli/src/lib/make/utils/write-package-json.ts index 7bd075d0..c8b10868 100644 --- a/packages/cli/src/lib/make/utils/write-package-json.ts +++ b/packages/cli/src/lib/make/utils/write-package-json.ts @@ -97,7 +97,7 @@ export function writePackageJson(response: prompts.Answers): void { } }, "devDependencies": { - "@bedframe/cli": "0.0.89", + "@bedframe/cli": "0.0.90", "@bedframe/core": "0.0.44", ${ changesets