Skip to content
This repository was archived by the owner on May 1, 2020. It is now read-only.

Commit 7f8a0c3

Browse files
imgx64jthoms1
authored andcommitted
fix(livereload): use localhost instead of 0.0.0.0 when injecting live reload script (#450)
1 parent 8fc1053 commit 7f8a0c3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/dev-server/live-reload.ts

+3
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ export function injectLiveReloadScript(content: any, host: string, port: Number)
5353
}
5454

5555
function getLiveReloadScript(host: string, port: Number) {
56+
if (host === '0.0.0.0') {
57+
host = 'localhost';
58+
}
5659
var src = `//${host}:${port}/livereload.js?snipver=1`;
5760
return ` <!-- Ionic Dev Server: Injected LiveReload Script -->\n <script src="${src}" async="" defer=""></script>`;
5861
}

0 commit comments

Comments
 (0)