ublo-lib 1.31.25 → 1.31.27

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.
@@ -34,17 +34,23 @@ export default function useTunnel({
34
34
  const startTunnel = async () => {
35
35
  await loadWidgetMseM(integration);
36
36
  const categoryCode = window.sessionStorage.getItem("categoryCode") || undefined;
37
- window.MseM.onLoad(() => {
38
- window.requestAnimationFrame(() => window.MseM.tunnel({
39
- channel,
40
- resort,
41
- groundedTo,
42
- lang: widgetLang,
43
- esfUrl,
44
- customOffers,
45
- analytics: Plausible.callback,
46
- categoryCode
47
- }));
37
+ window.MseM?.onLoad(() => {
38
+ window.requestAnimationFrame(() => {
39
+ const container = document.querySelector(groundedTo);
40
+ if (container.innerHTML !== "") {
41
+ container.innerHTML = "";
42
+ }
43
+ window.MseM.tunnel({
44
+ channel,
45
+ resort,
46
+ groundedTo,
47
+ lang: widgetLang,
48
+ esfUrl,
49
+ customOffers,
50
+ analytics: Plausible.callback,
51
+ categoryCode
52
+ });
53
+ });
48
54
  });
49
55
  };
50
56
  if (enableCustomOffers && customOffers !== undefined || !enableCustomOffers) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ublo-lib",
3
- "version": "1.31.25",
3
+ "version": "1.31.27",
4
4
  "peerDependencies": {
5
5
  "dt-design-system": "^3.8.3",
6
6
  "leaflet": "^1.9.1",