dsh-desktop-enhance 0.3.7 → 0.3.8
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/lib/client.js +6 -2
- package/package.json +1 -1
package/lib/client.js
CHANGED
|
@@ -4555,7 +4555,7 @@ window.__ModuleLoader__.load({
|
|
|
4555
4555
|
if (root === null || typeof root.querySelector !== "function") return null;
|
|
4556
4556
|
const sessionId = root.getAttribute("data-conversation-session");
|
|
4557
4557
|
if (sessionId === null || sessionId === "") return null;
|
|
4558
|
-
if (root.querySelector("[data-chat-flow]") === null) return null;
|
|
4558
|
+
if (!(root.getAttribute("data-content-phase") === "hero") && root.querySelector("[data-chat-flow]") === null) return null;
|
|
4559
4559
|
return {
|
|
4560
4560
|
root,
|
|
4561
4561
|
sessionId
|
|
@@ -5150,7 +5150,11 @@ window.__ModuleLoader__.load({
|
|
|
5150
5150
|
childList: true,
|
|
5151
5151
|
subtree: true,
|
|
5152
5152
|
attributes: true,
|
|
5153
|
-
attributeFilter: [
|
|
5153
|
+
attributeFilter: [
|
|
5154
|
+
"class",
|
|
5155
|
+
"data-conversation-session",
|
|
5156
|
+
"data-content-phase"
|
|
5157
|
+
]
|
|
5154
5158
|
});
|
|
5155
5159
|
const onResize = () => {
|
|
5156
5160
|
sync();
|