mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 09:42:07 +08:00
parent
e9e6774a4f
commit
d3caa875be
|
@ -98,7 +98,7 @@ function updateScriptReferences({
|
|||
// ember-cli-live-reload doesn't select ports correctly, so we use _lr/livereload directly
|
||||
// (important for cloud development environments like GitHub CodeSpaces)
|
||||
newElements.unshift(
|
||||
`<script nonce="${nonce}">window.LiveReloadOptions = { "path": "_lr/livereload", "host": location.host, "port": location.port || (location.protocol === "https:" ? 443 : 80) }</script>`,
|
||||
`<script nonce="${nonce}">window.LiveReloadOptions = { "path": "_lr/livereload", "host": location.hostname, "port": location.port || (location.protocol === "https:" ? 443 : 80) }</script>`,
|
||||
`<script async src="/_lr/livereload.js" nonce="${nonce}"></script>`
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user