| @@ -65,15 +65,15 @@ | ||
| 65 | 65 | /** |
| 66 | 66 | * Enqueue front end and editor JavaScript and CSS |
| 67 | 67 | */ |
| 68 | 68 | public function enqueue_gutenberg_scripts() { |
| 69 | - $blockPath = VISUALIZER_ABSURL . '/classes/Visualizer/Gutenberg/build/block.js'; | |
| 70 | - $handsontableJS = VISUALIZER_ABSURL . '/classes/Visualizer/Gutenberg/build/handsontable.js'; | |
| 71 | - $stylePath = VISUALIZER_ABSURL . '/classes/Visualizer/Gutenberg/build/block.css'; | |
| 72 | - $handsontableCSS = VISUALIZER_ABSURL . '/classes/Visualizer/Gutenberg/build/handsontable.css'; | |
| 69 | + $blockPath = VISUALIZER_ABSURL . 'classes/Visualizer/Gutenberg/build/block.js'; | |
| 70 | + $handsontableJS = VISUALIZER_ABSURL . 'classes/Visualizer/Gutenberg/build/handsontable.js'; | |
| 71 | + $stylePath = VISUALIZER_ABSURL . 'classes/Visualizer/Gutenberg/build/block.css'; | |
| 72 | + $handsontableCSS = VISUALIZER_ABSURL . 'classes/Visualizer/Gutenberg/build/handsontable.css'; | |
| 73 | 73 | |
| 74 | 74 | if ( VISUALIZER_TEST_JS_CUSTOMIZATION ) { |
| 75 | - $version = filemtime( VISUALIZER_ABSPATH . '/classes/Visualizer/Gutenberg/build/block.js' ); | |
| 75 | + $version = filemtime( VISUALIZER_ABSPATH . 'classes/Visualizer/Gutenberg/build/block.js' ); | |
| 76 | 76 | } else { |
| 77 | 77 | $version = $this->version; |
| 78 | 78 | } |
| 79 | 79 | |
| @@ -78,9 +78,9 @@ | ||
| 78 | 78 | } |
| 79 | 79 | |
| 80 | 80 | // Enqueue the bundled block JS file |
| 81 | 81 | wp_enqueue_script( 'handsontable', $handsontableJS ); |
| 82 | - wp_enqueue_script( 'visualizer-gutenberg-block', $blockPath, array( 'wp-api', 'handsontable' ), $version ); | |
| 82 | + wp_enqueue_script( 'visualizer-gutenberg-block', $blockPath, array( 'wp-api', 'handsontable' ), $version, true ); | |
| 83 | 83 | |
| 84 | 84 | $type = 'community'; |
| 85 | 85 | |
| 86 | 86 | if ( VISUALIZER_PRO ) { |