From 16083b2c7b2cc7e502bd713b9cc94d52e7f48f55 Mon Sep 17 00:00:00 2001 From: Alano Terblanche <18033717+Benehiko@users.noreply.github.com> Date: Tue, 26 Sep 2023 10:24:21 +0200 Subject: [PATCH] chore: restore express changes --- .eslintignore | 1 + src/markup-components/express.ts | 6 +----- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/.eslintignore b/.eslintignore index 7d44dc6d0..5d21e1203 100644 --- a/.eslintignore +++ b/.eslintignore @@ -2,3 +2,4 @@ node_modules dist src/markup-components/component-wrapper.tsx src/markup-components/components.ts +src/markup-components/express.ts diff --git a/src/markup-components/express.ts b/src/markup-components/express.ts index ab61e9d26..f79df11f5 100644 --- a/src/markup-components/express.ts +++ b/src/markup-components/express.ts @@ -34,11 +34,7 @@ export const RegisterOryElementsExpress: OryEelementsExpressRoute = ( // merge also creates a new object ensuring that we don't pollute the default or request theme inlineTheme = merge({}, inlineTheme, theme) } - res.send( - `body {${Object.entries( - assignInlineVars(oryTheme, inlineTheme), - ).toString()}}`, - ) + res.send(`body {${assignInlineVars(oryTheme, inlineTheme).toString()}}`) }) app.use("/", express.static("node_modules/@ory/elements/dist")) }