From 3c0c81ae5124f21b13f7d7e4d1f04ef5f7a014de Mon Sep 17 00:00:00 2001 From: narcolepticinsomniac Date: Sun, 2 Feb 2020 00:53:52 -0500 Subject: [PATCH] Account for Dropbox bug --- _locales/en/messages.json | 4 ++++ options/options.js | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/_locales/en/messages.json b/_locales/en/messages.json index 004fee86..aa3820c8 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -445,6 +445,10 @@ "message": "Press a hotkey", "description": "Placeholder text of inputbox in keymap help popup on the edit style page. Must be very short" }, + "hostDisabled": { + "message": "This host has been disabled due to a bug in the current version of the browser being used", + "description": "Tooltip for cloud host disabled" + }, "importAppendLabel": { "message": "Append to style", "description": "Label for the button to import a style and append to the existing sections" diff --git a/options/options.js b/options/options.js index f0f4525f..d5ab0ce3 100644 --- a/options/options.js +++ b/options/options.js @@ -9,6 +9,13 @@ setupRadioButtons(); enforceInputRange($('#popupWidth')); setTimeout(splitLongTooltips); +// TODO: add max version to re-enable once crbug.com/996859 is resolved +if (!FIREFOX && CHROME >= 3809) { + const dropboxOption = $('option[value="dropbox"]'); + dropboxOption.disabled = true; + dropboxOption.setAttribute('title', t('hostDisabled')); +} + if (CHROME_HAS_BORDER_BUG) { const borderOption = $('.chrome-no-popup-border'); if (borderOption) {