From 7f8a0c34d5bd6eca905b33c1f1b257c6f57ec14f Mon Sep 17 00:00:00 2001 From: imgx64 Date: Mon, 5 Dec 2016 19:46:49 +0300 Subject: [PATCH] fix(livereload): use localhost instead of 0.0.0.0 when injecting live reload script (#450) --- src/dev-server/live-reload.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/dev-server/live-reload.ts b/src/dev-server/live-reload.ts index c8540e40..8ae669e7 100644 --- a/src/dev-server/live-reload.ts +++ b/src/dev-server/live-reload.ts @@ -53,6 +53,9 @@ export function injectLiveReloadScript(content: any, host: string, port: Number) } function getLiveReloadScript(host: string, port: Number) { + if (host === '0.0.0.0') { + host = 'localhost'; + } var src = `//${host}:${port}/livereload.js?snipver=1`; return ` \n `; }