diff options
author | 2019-09-27 21:11:24 +0200 | |
---|---|---|
committer | 2019-09-27 21:11:24 +0200 | |
commit | 86410c4bc7b3dad824586a7116713318287a6d0e (patch) | |
tree | 780273d1de44149d6a2c0ebc1536c191b80d4fe9 /src/models/Recipe.js | |
parent | fix(App): Fix "Paste And Match Style" (diff) | |
download | ferdium-app-86410c4bc7b3dad824586a7116713318287a6d0e.tar.gz ferdium-app-86410c4bc7b3dad824586a7116713318287a6d0e.tar.zst ferdium-app-86410c4bc7b3dad824586a7116713318287a6d0e.zip |
add disablewebsecurity option
Diffstat (limited to 'src/models/Recipe.js')
-rw-r--r-- | src/models/Recipe.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/models/Recipe.js b/src/models/Recipe.js index b0d60e75e..00c0f699f 100644 --- a/src/models/Recipe.js +++ b/src/models/Recipe.js | |||
@@ -36,6 +36,8 @@ export default class Recipe { | |||
36 | 36 | ||
37 | message = ''; | 37 | message = ''; |
38 | 38 | ||
39 | disablewebsecurity = false; | ||
40 | |||
39 | constructor(data) { | 41 | constructor(data) { |
40 | if (!data) { | 42 | if (!data) { |
41 | throw Error('Recipe config not valid'); | 43 | throw Error('Recipe config not valid'); |
@@ -74,6 +76,8 @@ export default class Recipe { | |||
74 | this.urlInputPrefix = data.config.urlInputPrefix || this.urlInputPrefix; | 76 | this.urlInputPrefix = data.config.urlInputPrefix || this.urlInputPrefix; |
75 | this.urlInputSuffix = data.config.urlInputSuffix || this.urlInputSuffix; | 77 | this.urlInputSuffix = data.config.urlInputSuffix || this.urlInputSuffix; |
76 | 78 | ||
79 | this.disablewebsecurity = data.config.disablewebsecurity || this.disablewebsecurity; | ||
80 | |||
77 | this.message = data.config.message || this.message; | 81 | this.message = data.config.message || this.message; |
78 | } | 82 | } |
79 | 83 | ||