From 89b5477bef2d2c4a6535ae8efffe4889d530efde Mon Sep 17 00:00:00 2001 From: Nerixyz Date: Wed, 6 Apr 2022 13:23:48 +0200 Subject: [PATCH] fix: remove notice on Firefox regarding playback speed Closes #1059 --- src/sites/shared/player.jsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/sites/shared/player.jsx b/src/sites/shared/player.jsx index 1e9aad38..3465f941 100644 --- a/src/sites/shared/player.jsx +++ b/src/sites/shared/player.jsx @@ -1304,7 +1304,7 @@ export default class PlayerBase extends Module { return; } - let icon, tip, extra, ff_el, btn, cont = container.querySelector('.ffz--player-comp'); + let icon, tip, extra, btn, cont = container.querySelector('.ffz--player-comp'); if ( ! has_comp || this.areControlsDisabled(inst) ) { if ( cont ) cont.remove(); @@ -1329,7 +1329,6 @@ export default class PlayerBase extends Module {
{tip = (
)} {extra = (
)} - {ff_el = IS_FIREFOX ? (
) : null}
); @@ -1357,9 +1356,6 @@ export default class PlayerBase extends Module { if ( can_apply && this._shortcut_bound ) label = `${label} (${this._shortcut_bound})`; - if ( ff_el ) - ff_el.textContent += `\n${this.i18n.t('player.comp_button.firefox', 'Playback Speed controls will not function for Firefox users when the Compressor has been enabled.')}`; - icon.classList.toggle('ffz-i-comp-on', comp_active); icon.classList.toggle('ffz-i-comp-off', ! comp_active); btn.disabled = ! can_apply;