@mirai/core 0.3.265 → 0.3.266
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 +1 -1
- package/public/index.html +9 -3
package/package.json
CHANGED
package/public/index.html
CHANGED
|
@@ -16,13 +16,19 @@
|
|
|
16
16
|
ad_personalization: 'granted',
|
|
17
17
|
analytics_storage: 'granted',
|
|
18
18
|
});
|
|
19
|
+
function getId() {
|
|
20
|
+
const params = new URLSearchParams(window.location.search);
|
|
21
|
+
if (!params.get('useTracking')) return;
|
|
22
|
+
|
|
23
|
+
document.querySelector('#mirai').dataset.miraiId = params.get('miraiId') || '100379008';
|
|
24
|
+
}
|
|
19
25
|
</script>
|
|
20
26
|
</head>
|
|
21
|
-
<body>
|
|
22
|
-
<div data-mirai-engine="mirai_tr" data-
|
|
27
|
+
<body onload="getId()">
|
|
28
|
+
<div data-mirai-engine="mirai_tr" data-init="true" />
|
|
23
29
|
<noscript>You need to enable JavaScript to run this app.</noscript>
|
|
24
30
|
<!-- hotel example -->
|
|
25
|
-
<div data-mirai-id="100379008"></div>
|
|
31
|
+
<div id="mirai" data-mirai-id="100379008"></div>
|
|
26
32
|
<!-- chain example -->
|
|
27
33
|
<!-- <div data-mirai-id="501404" data-hotel="88737419" data-type="chain" data-locale="en-GB" _hidden></div> -->
|
|
28
34
|
|