Skip to content

Commit

Permalink
chore: restore express changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Benehiko committed Sep 26, 2023
1 parent a0b5130 commit 16083b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ node_modules
dist
src/markup-components/component-wrapper.tsx
src/markup-components/components.ts
src/markup-components/express.ts
6 changes: 1 addition & 5 deletions src/markup-components/express.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
}

0 comments on commit 16083b2

Please sign in to comment.