summaryrefslogtreecommitdiffstats
path: root/livereload
AgeCommit message (Collapse)Author
2015-12-07Fix copyright headers in source filesBjørn Erik Pedersen
Still need to add some missing headers and an AUTHORS file. See #1646
2015-11-23Change the license to Apache 2.0Steve Francia
2015-03-07livereload: apply some Golint rulesbep
2015-01-30url_path => urlPathbep
2015-01-30Fix for issue 839 and 490 on WindowsDan Hersam
The paths were seen as changed but not static because of the backslashes in ev.Name. Once the backslashes were added, I discovered that the JSON sent to livereload was invalid and failed to work because it had backslashes. Hence the code to replace the backslashes from the path to make them work in JSON and for the URL. With this fix, changes to a stylesheet are shown on the page, and if it's a single file that changed, it's reflected in the browser without reloading the whole page.
2014-10-15Set Content-Type for livereload.jsbep
The Content-Type was not set for livereload.js and was interpreteted by the browser as text/plain. This commit sets it to application/javascript. Fixes #562
2014-09-11Enable soft livereload of CSS and imagesbep
Prior to this commit a dummy JavaScript filename was sent to LiveReload when changing a static file (CSS, image etc.), forcing a full browser reload of the page. This commit fixes this by sending the relative file path of the changed static resource, enabling partial live reloading for CSS- and image-changes. If more than one static file happens to end up in the same changeevent-batch, it will fall back to do a full refresh. To enable this logic, the change events with names ending with ".goutputstream*" is now filtered out as temporary. Changes in dynamic content behaves like before. Issue #490
2014-05-27Fixing bug with Live Reload where it broadcast instead of sending the handshakespf13
2014-05-16Proper integration of live reload with automatic injectionspf13