Fix usercss install error. Closes #589
This commit is contained in:
parent
43a4671c64
commit
ef4a0b722a
|
@ -16,7 +16,8 @@
|
||||||
let port;
|
let port;
|
||||||
|
|
||||||
if (params.has('direct')) {
|
if (params.has('direct')) {
|
||||||
$('.live-reload').textContent = t('liveReloadUnavailable');
|
$('.live-reload input').classList.add('hidden');
|
||||||
|
$('.live-reload span').textContent = t('liveReloadUnavailable');
|
||||||
$('.live-reload').classList.add('unavailable');
|
$('.live-reload').classList.add('unavailable');
|
||||||
getCodeDirectly();
|
getCodeDirectly();
|
||||||
} else {
|
} else {
|
||||||
|
@ -317,7 +318,8 @@
|
||||||
checker.disabled = true;
|
checker.disabled = true;
|
||||||
} else if (updateUrl.href === DUMMY_URL) {
|
} else if (updateUrl.href === DUMMY_URL) {
|
||||||
// drag'n'dropped on the manage page and the style doesn't have @updateURL
|
// drag'n'dropped on the manage page and the style doesn't have @updateURL
|
||||||
$('.set-update-url').textContent = t('installUpdateUnavailable');
|
$('.set-update-url input').classList.add('hidden')
|
||||||
|
$('.set-update-url span').textContent = t('installUpdateUnavailable');
|
||||||
$('.set-update-url').classList.add('unavailable');
|
$('.set-update-url').classList.add('unavailable');
|
||||||
return;
|
return;
|
||||||
} else if (updateUrl.protocol !== 'file:') {
|
} else if (updateUrl.protocol !== 'file:') {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user