Preserve untouched example domains from query params

This commit is contained in:
MattIPv4
2020-06-03 16:44:49 +01:00
parent 4e34a9b6a9
commit 62178fd7d2
3 changed files with 35 additions and 36 deletions

View File

@@ -151,7 +151,7 @@ limitations under the License.
computed: {
...computedFromDefaults(defaults, 'security'), // Getters & setters for the delegated data
hasWordPress() {
return this.$parent.$parent.$data.domains.some(d => d.php.wordPressRules.computed);
return this.$parent.$parent.$data.domains.some(d => d && d.php.wordPressRules.computed);
},
hasUnsafeEval() {
return this.$props.data.contentSecurityPolicy.computed.includes('\'unsafe-eval\'');