@salesforcedevs/docs-components 1.3.227-dh6-alpha → 1.3.227-dh7-alpha
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
|
@@ -23,6 +23,8 @@ export default class Header extends HeaderBase {
|
|
|
23
23
|
private _scopedNavItems!: OptionWithNested[];
|
|
24
24
|
private tablet = false;
|
|
25
25
|
private tabletMatchMedia!: MediaQueryList;
|
|
26
|
+
private shouldRender: boolean = false;
|
|
27
|
+
private showDocDivider: boolean = false;
|
|
26
28
|
|
|
27
29
|
protected mobileBreakpoint(): string {
|
|
28
30
|
return MOBILE_MATCH;
|
|
@@ -41,16 +43,22 @@ export default class Header extends HeaderBase {
|
|
|
41
43
|
this.tabletMatchMedia.addEventListener("change", this.onTabletChange);
|
|
42
44
|
|
|
43
45
|
if (
|
|
44
|
-
(
|
|
46
|
+
(window.location.pathname.includes("/docs/") &&
|
|
45
47
|
window.location.pathname !== "/docs/apis") ||
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
(this.brand || this.mobile)
|
|
48
|
+
window.location.pathname ===
|
|
49
|
+
"/tableau/embedding-playground/overview" ||
|
|
50
|
+
window.location.host === "localhost:6006" ||
|
|
51
|
+
window.location.host === "dsc-components.herokuapp.com"
|
|
51
52
|
) {
|
|
52
53
|
this.shouldRender = true;
|
|
53
54
|
}
|
|
55
|
+
|
|
56
|
+
if (this.shouldRender && window.location.pathname.includes("/docs/")) {
|
|
57
|
+
if (!this.brand && !this.mobile) {
|
|
58
|
+
this.shouldRender = false;
|
|
59
|
+
this.showDocDivider = true;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
54
62
|
}
|
|
55
63
|
|
|
56
64
|
disconnectedCallback(): void {
|