mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-06-28 15:27:43 +00:00
4.21.0
* Added: Setting to toggle the Audio Compressor with a shortcut key. * Added: Gain Control for the Audio Compressor. Gain Control is an additional volume control that runs after the compressor, as an alternative to the built-in volume control which happens before the compressor. * Changed: Use case-insensitive string comparison for the `Current Page` profile rule. * Fixed: The current channel not being detected correctly on user pages. * API Added: Standardized input processors for settings. So far, there are `to_int` and `to_float` with support for bounds.
This commit is contained in:
parent
66702103ff
commit
b3c3c8130d
20 changed files with 785 additions and 154 deletions
|
@ -1,7 +1,17 @@
|
|||
'use strict';
|
||||
|
||||
import {BAD_HOTKEYS} from 'utilities/constants';
|
||||
|
||||
const HOP = Object.prototype.hasOwnProperty;
|
||||
|
||||
export function isValidShortcut(key) {
|
||||
if ( ! key )
|
||||
return false;
|
||||
|
||||
key = key.toLowerCase().trim();
|
||||
return ! BAD_HOTKEYS.includes(key);
|
||||
}
|
||||
|
||||
// Source: https://gist.github.com/jed/982883 (WTFPL)
|
||||
export function generateUUID(input) {
|
||||
return input // if the placeholder was passed, return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue