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