Skip to content

Commit

Permalink
Demos: Use HTTPS for jQuery UI CSS
Browse files Browse the repository at this point in the history
Avoid protocol-relative URLs; they used to be recommended in the past but the
current good practice is to use HTTPS everywhere.

Fixes jquery/jquery-ui#2183
  • Loading branch information
mgol committed Apr 25, 2024
1 parent e00ee0e commit 7945c96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ grunt.registerTask( "build-demos", function() {
// ../../ui/themes/* -> CDN
source = source.replace(
/<link rel="stylesheet" href="\.\.\/\.\.\/themes[^>]+>/,
"<link rel=\"stylesheet\" href=\"//code.jquery.com/ui/" + pkg.version + "/themes/base/jquery-ui.css\">" );
"<link rel=\"stylesheet\" href=\"https://code.jquery.com/ui/" + pkg.version + "/themes/base/jquery-ui.css\">" );

// ../demos.css -> /resources/demos/style.css
source = source.replace(
Expand Down

0 comments on commit 7945c96

Please sign in to comment.