@worksafevictoria/wcl7.5 1.1.0-beta.88 → 1.1.0-beta.89

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@worksafevictoria/wcl7.5",
3
- "version": "1.1.0-beta.88",
3
+ "version": "1.1.0-beta.89",
4
4
  "main": "src/index.js",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -252,13 +252,10 @@ export default {
252
252
  return this.item === null
253
253
  },
254
254
  showCookie() {
255
- //Check first if cookies have been turned on in the environment variable
256
- return (this.$config
257
- ? this.$config.public.showCookie
258
- : process.env.SHOW_COOKIE) === false
259
- ? false
260
- : true
261
- },
255
+ // Default to false, but set to true when SHOW_COOKIE is explicitly "true"
256
+ return this.$config?.public?.showCookie === "true" || process.env.SHOW_COOKIE === "true";
257
+ }
258
+
262
259
  },
263
260
  mounted() {
264
261
  // detect screen size to display smaller content