We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec2da01 commit 966f477Copy full SHA for 966f477
demo/story/index.html
@@ -15,6 +15,12 @@
15
<link rel="stylesheet" href="/demo/demo.css">
16
17
<script type="module">
18
+ window.mi = {
19
+ zones: {
20
+ test: "performance"
21
+ }
22
23
+
24
import locker from "../locker.js";
25
import distributeZones from "/index.js";
26
index.js
@@ -25,7 +25,8 @@ async function distributeZones(locker) {
// Add the communication bridge
27
window.mi = window.mi || {};
28
- window.mi.zones = zones.getPublicAPI();
+ window.mi.zones = window.mi.zones || {};
29
+ window.mi.zones = Object.assign(window.mi.zones, zones.getPublicAPI());
30
31
// Give the performance team a promise
32
return new Promise((resolve, reject) => {
0 commit comments