hof 21.1.0-deindex-toggle-beta → 21.1.0-deindex-toggle-beta.1
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/deindex.js +3 -1
- package/package.json +1 -1
package/lib/deindex.js
CHANGED
@@ -1,7 +1,9 @@
|
|
1
1
|
'use strict';
|
2
2
|
|
3
3
|
module.exports = (app, config) => {
|
4
|
-
|
4
|
+
// Ensure the value of deIndex is evaluated as a boolean regardless of if single quotes are used
|
5
|
+
// to have the expected conditional behaviour in the Mustache template
|
6
|
+
const deIndex = (config.deIndexForm === 'true' || config.deIndexForm === true);
|
5
7
|
|
6
8
|
app.use((req, res, next) => {
|
7
9
|
|