fix(banner): correct http/https protocol for dev/prod
This commit is contained in:
parent
b8a9a594ba
commit
e31cd40adc
1 changed files with 1 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
|||
- if auto_switch?
|
||||
:javascript
|
||||
const hintUrl = "http://#{ApplicationHelper::APP_HOST}/favicon.ico"
|
||||
const hintUrl = "#{request.protocol}#{ApplicationHelper::APP_HOST}/favicon.ico"
|
||||
|
||||
fetch(hintUrl, { mode: 'cors' }).then(() => {
|
||||
window.location = '#{new_host_url}';
|
||||
|
|
Loading…
Add table
Reference in a new issue