Skip to content
This repository was archived by the owner on Jul 6, 2021. It is now read-only.

Would be better if Rack-LiveReload didn't use a hard IP addressΒ #54

@NathanBowers

Description

@NathanBowers

Please consider embedding the LiveReload script the way LiveReload app itself advises:

<script>document.write('<script src="http://' + (location.host || 'localhost').split(':')[0] + ':35729/livereload.js?snipver=1"></' + 'script>')</script>

Currently Rack embeds the script with a hard 0.0.0.0 IP address, and this doesn't work when testing with mobile devices over my WiFi network (because mobile devices browse to my Mac's network IP, not 0.0.0.0).

Merely specifying an IP in config.rb isn't optimal because my Mac's IP changes depending on whether I'm home or at work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions