We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a598310 commit 95ee7ceCopy full SHA for 95ee7ce
1 file changed
index.js
@@ -10,7 +10,7 @@ const { HtmlValidate } = require('html-validate')
10
const validatorErrorPage = fs.readFileSync(path.join(__dirname, 'templates/errorPage.html'))
11
12
module.exports = (app, params) => {
13
- if (app.hasOwnProperty('listen') || typeof app.listen === 'function') {
+ if (Object.prototype.hasOwnProperty.call(app, 'listen') || typeof app.listen === 'function') {
14
params = params || {} // two arguments
15
} else {
16
params = app // one argument
0 commit comments