use location.protocol to inject the livereload script instead of forcing http (#8718)
Merge pull request 8718
This commit is contained in:
parent
0ce9a7c179
commit
9bb98edb29
|
@ -101,7 +101,7 @@ module Jekyll
|
|||
@template ||= ERB.new(<<~TEMPLATE)
|
||||
<script>
|
||||
document.write(
|
||||
'<script src="http://' +
|
||||
'<script src="' + location.protocol + '//' +
|
||||
(location.host || 'localhost').split(':')[0] +
|
||||
':<%=@options["livereload_port"] %>/livereload.js?snipver=1<%= livereload_args %>"' +
|
||||
'></' +
|
||||
|
|
Loading…
Reference in New Issue