@triptease/tt-navbar 0.0.47 → 0.0.48

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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @triptease/tt-navbar v0.0.47
2
+ * @triptease/tt-navbar v0.0.48
3
3
  */
4
4
 
5
5
  // ../../node_modules/@lit/reactive-element/css-tag.js
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @triptease/tt-navbar v0.0.47
2
+ * @triptease/tt-navbar v0.0.48
3
3
  */
4
4
 
5
5
  // src/triptease-logo.ts
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @triptease/tt-navbar v0.0.47
2
+ * @triptease/tt-navbar v0.0.48
3
3
  */
4
4
  var __defProp = Object.defineProperty;
5
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -2130,7 +2130,8 @@ var TtNavbar = class extends i4 {
2130
2130
  NavbarStateCookieOpenValue,
2131
2131
  NavbarStateCookieClosedValue
2132
2132
  } = Config;
2133
- document.cookie = `${NavbarStateCookieName}=${this.isOpen ? NavbarStateCookieOpenValue : NavbarStateCookieClosedValue}; path=/; max-age=31536000`;
2133
+ const domain = window.location.hostname.endsWith(".triptease.io") ? "domain=.triptease.io" : "";
2134
+ document.cookie = `${NavbarStateCookieName}=${this.isOpen ? NavbarStateCookieOpenValue : NavbarStateCookieClosedValue}; path=/; max-age=31536000; ${domain}`;
2134
2135
  };
2135
2136
  this.handleDetailsToggle = (e10) => {
2136
2137
  const { newState } = e10;