Skip to content

Commit 54bfb0a

Browse files
committed
Fixed cdn import should using relative protocol
1 parent b070de8 commit 54bfb0a

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

public/views/head.ejs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
1010
<% if(useCDN) { %>
1111
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
12-
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
12+
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
1313
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/bootstrap-social/4.9.0/bootstrap-social.min.css">
1414
<% } else { %>
1515
<link rel="stylesheet" href="/vendor/bootstrap/dist/css/bootstrap.min.css">

public/views/pretty.ejs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
<link rel="icon" type="image/png" href="<%- url %>/favicon.png">
1313
<link rel="apple-touch-icon" href="<%- url %>/apple-touch-icon.png">
1414
<% if(useCDN) { %>
15-
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
16-
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
15+
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
16+
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
1717
<% } else { %>
1818
<link rel="stylesheet" href='<%- url %>/vendor/bootstrap/dist/css/bootstrap.min.css'>
1919
<link rel="stylesheet" href='<%- url %>/vendor/font-awesome/css/font-awesome.min.css'>
@@ -51,8 +51,8 @@
5151

5252
</html>
5353
<% if(useCDN) { %>
54-
<script src="https://code.jquery.com/jquery-1.11.3.min.js" defer></script>
55-
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" defer></script>
54+
<script src="//code.jquery.com/jquery-1.11.3.min.js" defer></script>
55+
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" defer></script>
5656
<% } else { %>
5757
<script src="<%- url %>/vendor/jquery/dist/jquery.min.js" defer></script>
5858
<script src="<%- url %>/vendor/bootstrap/dist/js/bootstrap.min.js" defer></script>

0 commit comments

Comments
 (0)