mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-03-26 08:18:11 +00:00
safely destructure
This commit is contained in:
@@ -19,7 +19,9 @@
|
|||||||
<main id="reactRoot"></main>
|
<main id="reactRoot"></main>
|
||||||
|
|
||||||
<script type="module">
|
<script type="module">
|
||||||
const { config: { baseUrl: url }, brew: { title } } = window.__INITIAL_PROPS__;
|
const props = window.__INITIAL_PROPS__ || {};
|
||||||
|
const url = props.config?.baseUrl;
|
||||||
|
const title = props.brew?.title;
|
||||||
|
|
||||||
let prefix = '';
|
let prefix = '';
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user