From ef4a0b722ac2718a53acc9e1f9afe57e37cd6a65 Mon Sep 17 00:00:00 2001 From: Rob Garrison Date: Wed, 28 Nov 2018 16:46:35 -0600 Subject: [PATCH] Fix usercss install error. Closes #589 --- install-usercss/install-usercss.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/install-usercss/install-usercss.js b/install-usercss/install-usercss.js index 211e4e2f..1304c372 100644 --- a/install-usercss/install-usercss.js +++ b/install-usercss/install-usercss.js @@ -16,7 +16,8 @@ let port; 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'); getCodeDirectly(); } else { @@ -317,7 +318,8 @@ checker.disabled = true; } else if (updateUrl.href === DUMMY_URL) { // 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'); return; } else if (updateUrl.protocol !== 'file:') {