| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | protected function enqueueReactAssets(bool $addInFooter = true): void |
||
| 16 | { |
||
| 17 | \wp_enqueue_script( |
||
| 18 | 'graphql-api-react', |
||
| 19 | \GRAPHQL_API_URL . 'assets/js/vendors/react.min.js', |
||
| 20 | array(), |
||
| 21 | \GRAPHQL_API_VERSION, |
||
| 22 | $addInFooter |
||
| 23 | ); |
||
| 24 | \wp_enqueue_script( |
||
| 25 | 'graphql-api-react-dom', |
||
| 26 | \GRAPHQL_API_URL . 'assets/js/vendors/react-dom.min.js', |
||
| 27 | array('graphql-api-react'), |
||
| 28 | \GRAPHQL_API_VERSION, |
||
| 29 | $addInFooter |
||
| 30 | ); |
||
| 33 |