Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: figure out why kiwisizing is not working #154

Merged
merged 2 commits into from
Jun 1, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 23 additions & 2 deletions tests/integrations/event-forwarding/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<script>
partytown = {
forward: ['superDuperFunction', 'superArray.push'],
forward: ['superDuperFunction', 'superArray.push','KiwiSizing'],
logCalls: true,
logGetters: true,
logSetters: true,
Expand Down Expand Up @@ -64,7 +64,23 @@
})();
</script>

<style>
<script type='text/partytown'>
(function () {
window.KiwiSizing = window.KiwiSizing === undefined ? {} : window.KiwiSizing;
KiwiSizing.data = {
collections: "211448987800",
}

console.log("Before KiwiSizing", KiwiSizing)
console.log("Before KiwiSizing.data", KiwiSizing.data)
})();
</script>
<script type="text/partytown">
console.log("KiwiSizing", KiwiSizing)
console.log("KiwiSizing.data", KiwiSizing.data)
window.document.getElementById("kiwisizing").innerText = KiwiSizing.data;
</script>
<style>
body {
font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif,
Apple Color Emoji, Segoe UI Emoji;
Expand Down Expand Up @@ -134,6 +150,10 @@ <h1>Integration Event Forwarding</h1>
})();
</script>
</li>
<li>
<strong>Kiwi sizing</strong>
<code id="kiwisizing"></code>
</li>
</ul>

<script type="text/partytown">
Expand All @@ -142,5 +162,6 @@ <h1>Integration Event Forwarding</h1>

<hr />
<p><a href="/tests/">All Tests</a></p>
<hr />
</body>
</html>
Loading