|
Last change
on this file was a762898, checked in by istevanoska <ilinastevanoska@…>, 5 months ago |
|
Added visualizations
|
-
Property mode
set to
100644
|
|
File size:
536 bytes
|
| Rev | Line | |
|---|
| [a762898] | 1 | "use strict";
|
|---|
| 2 |
|
|---|
| 3 | Object.defineProperty(exports, "__esModule", {
|
|---|
| 4 | value: true
|
|---|
| 5 | });
|
|---|
| 6 | exports.reduxDevtoolsJsonStringifyReplacer = reduxDevtoolsJsonStringifyReplacer;
|
|---|
| 7 | function reduxDevtoolsJsonStringifyReplacer(key, value) {
|
|---|
| 8 | if (value instanceof HTMLElement) {
|
|---|
| 9 | return "HTMLElement <".concat(value.tagName, " class=\"").concat(value.className, "\">");
|
|---|
| 10 | }
|
|---|
| 11 | if (value === window) {
|
|---|
| 12 | return 'global.window';
|
|---|
| 13 | }
|
|---|
| 14 | if (key === 'children' && typeof value === 'object' && value !== null) {
|
|---|
| 15 | return '<<CHILDREN>>';
|
|---|
| 16 | }
|
|---|
| 17 | return value;
|
|---|
| 18 | } |
|---|
Note:
See
TracBrowser
for help on using the repository browser.