Skip to content
Snippets Groups Projects
Commit c008752f authored by Paweł Pregiel's avatar Paweł Pregiel
Browse files

Switch Gutenberg Cloud CDN to jsDelivr

parent 41b9ed31
No related branches found
Tags 2.0.0-alpha6
No related merge requests found
......@@ -9,13 +9,13 @@ function gutenberg_cloud_gutenberg_blocks_alter(array &$js_files_edit, array &$c
foreach ($config_cloud as $block) {
if ($block['edit_css']) {
$css_files_edit[] = 'https://unpkg.com/' . $block['name'] . '@' . $block['version'] . '/' . $block['edit_css'];
$css_files_edit[] = 'https://cdn.jsdelivr.net/npm/' . $block['name'] . '@' . $block['version'] . '/' . $block['edit_css'];
}
if ($block['js']) {
$js_files_edit[] = 'https://unpkg.com/' . $block['name'] . '@' . $block['version'] . '/' . $block['js'];
$js_files_edit[] = 'https://cdn.jsdelivr.net/npm/' . $block['name'] . '@' . $block['version'] . '/' . $block['js'];
}
if ($block['view_css']) {
$css_files_view[] = 'https://unpkg.com/' . $block['name'] . '@' . $block['version'] . '/' . $block['view_css'];
$css_files_view[] = 'https://cdn.jsdelivr.net/npm/' . $block['name'] . '@' . $block['version'] . '/' . $block['view_css'];
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment