Fix: hide live reload checkbox according to installationUrl

This commit is contained in:
eight 2019-02-13 10:46:47 +08:00
parent 63b8993c39
commit 3906dbfce8

View File

@ -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', () => {