Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
gutenberg-3401973
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
gutenberg-3401973
Commits
c008752f
Commit
c008752f
authored
5 years ago
by
Paweł Pregiel
Browse files
Options
Downloads
Patches
Plain Diff
Switch Gutenberg Cloud CDN to jsDelivr
parent
41b9ed31
No related branches found
Branches containing commit
Tags
2.0.0-alpha6
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/gutenberg_cloud/gutenberg_cloud.module
+3
-3
3 additions, 3 deletions
modules/gutenberg_cloud/gutenberg_cloud.module
with
3 additions
and
3 deletions
modules/gutenberg_cloud/gutenberg_cloud.module
+
3
−
3
View file @
c008752f
...
...
@@ -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.co
m/'
.
$block
[
'name'
]
.
'@'
.
$block
[
'version'
]
.
'/'
.
$block
[
'edit_css'
];
$css_files_edit
[]
=
'https://
cdn.jsdelivr.net/np
m/'
.
$block
[
'name'
]
.
'@'
.
$block
[
'version'
]
.
'/'
.
$block
[
'edit_css'
];
}
if
(
$block
[
'js'
])
{
$js_files_edit
[]
=
'https://
unpkg.co
m/'
.
$block
[
'name'
]
.
'@'
.
$block
[
'version'
]
.
'/'
.
$block
[
'js'
];
$js_files_edit
[]
=
'https://
cdn.jsdelivr.net/np
m/'
.
$block
[
'name'
]
.
'@'
.
$block
[
'version'
]
.
'/'
.
$block
[
'js'
];
}
if
(
$block
[
'view_css'
])
{
$css_files_view
[]
=
'https://
unpkg.co
m/'
.
$block
[
'name'
]
.
'@'
.
$block
[
'version'
]
.
'/'
.
$block
[
'view_css'
];
$css_files_view
[]
=
'https://
cdn.jsdelivr.net/np
m/'
.
$block
[
'name'
]
.
'@'
.
$block
[
'version'
]
.
'/'
.
$block
[
'view_css'
];
}
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment