Fix: hide live reload checkbox according to installationUrl
This commit is contained in:
parent
63b8993c39
commit
3906dbfce8
|
@ -335,7 +335,7 @@
|
||||||
|
|
||||||
// live reload
|
// live reload
|
||||||
const setLiveReload = $('.live-reload input[type=checkbox]');
|
const setLiveReload = $('.live-reload input[type=checkbox]');
|
||||||
if (updateUrl.protocol !== 'file:') {
|
if (!installationUrl || !installationUrl.startsWith('file:')) {
|
||||||
setLiveReload.parentNode.remove();
|
setLiveReload.parentNode.remove();
|
||||||
} else {
|
} else {
|
||||||
setLiveReload.addEventListener('change', () => {
|
setLiveReload.addEventListener('change', () => {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user