Skip to content

Commit b0ff57c

Browse files
committed
fix fastboot query param check
1 parent 05ccc27 commit b0ff57c

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

packages/ember-cli-fastboot/index.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -339,9 +339,7 @@ module.exports = {
339339

340340
app.use((req, resp, next) => {
341341
const fastbootQueryParam =
342-
req.query.hasOwnProperty('fastboot') && req.query.fastboot === 'false'
343-
? false
344-
: true;
342+
req.query?.fastboot === 'false' ? false : true;
345343
const enableFastBootServe =
346344
!process.env.FASTBOOT_DISABLED && fastbootQueryParam;
347345

0 commit comments

Comments
 (0)