Skip to content

Commit 06d52c9

Browse files
author
mnickkk
committed
Fix livereload when working on virtualenv like Vagrant
1 parent 7d97221 commit 06d52c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resources/views/index.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class="Sidebar-pages md-default-theme"
5252
{{--livereload--}}
5353
@if ( Config::get('app.debug') )
5454
<script type="text/javascript">
55-
document.write('<script src="//localhost:35729/livereload.js?snipver=1" type="text/javascript"><\/script>')
55+
document.write('<script src="'+ location.protocol + '//' + (location.host || 'localhost') +':35729/livereload.js?snipver=1" type="text/javascript"><\/script>')
5656
</script>
5757
@endif
5858
</body>

0 commit comments

Comments
 (0)