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 310ef4b commit fef9dc4Copy full SHA for fef9dc4
examples/include_custom_object.html
@@ -18,12 +18,11 @@
18
// as an example, let's include the current value of window.myvariable
19
// as custom data in the payload.
20
21
- // ensure payload.data.custom is set
22
- payload.data = payload.data || {};
23
- payload.data.custom = payload.data.custom || {};
+ // ensure payload.custom is set
+ payload.custom = payload.custom || {};
24
25
// add our data
26
- payload.data.custom.myvariable = window.myvariable;
+ payload.custom.myvariable = window.myvariable;
27
28
// no need to return anything (return value is unused)
29
};
0 commit comments