diff --git a/package.json b/package.json index cd90141b..02ba1673 100755 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "frankerfacez", "author": "Dan Salvato LLC", - "version": "4.12.3", + "version": "4.12.4", "description": "FrankerFaceZ is a Twitch enhancement suite.", "license": "Apache-2.0", "scripts": { diff --git a/src/sites/twitch-twilight/modules/css_tweaks/styles/hide-bits.scss b/src/sites/twitch-twilight/modules/css_tweaks/styles/hide-bits.scss index 24877ac8..2519e05a 100644 --- a/src/sites/twitch-twilight/modules/css_tweaks/styles/hide-bits.scss +++ b/src/sites/twitch-twilight/modules/css_tweaks/styles/hide-bits.scss @@ -3,5 +3,5 @@ .chat-input button[data-a-target="bits-button"], button[data-test-selector="get-bits-button__top-nav-button"], .channel-header__right > .tw-mg-l-1 > div > div > button:not([data-a-target]) { - display: none; + display: none !important; } \ No newline at end of file diff --git a/src/sites/twitch-twilight/modules/player.jsx b/src/sites/twitch-twilight/modules/player.jsx index 0c30fe2e..e7f534e8 100644 --- a/src/sites/twitch-twilight/modules/player.jsx +++ b/src/sites/twitch-twilight/modules/player.jsx @@ -493,7 +493,7 @@ export default class Player extends Module { } }); } catch(err) { - this.log.warning('Unable to install document visibility hook.', err); + this.log.warn('Unable to install document visibility hook.', err); } } diff --git a/src/sites/twitch-twilight/switchboard.js b/src/sites/twitch-twilight/switchboard.js index e92b3566..53d1c139 100644 --- a/src/sites/twitch-twilight/switchboard.js +++ b/src/sites/twitch-twilight/switchboard.js @@ -89,7 +89,7 @@ export default class Switchboard extends Module { try { component = component_class.Preload(); } catch(err) { - this.log.error('Error instantiating preloader for forced chunk loading.', err); + this.log.warn('Error instantiating preloader for forced chunk loading.', err); component = null; } @@ -108,7 +108,7 @@ export default class Switchboard extends Module { try { component = new route.props.component; } catch(err) { - this.log.error('Error instantiating component for forced chunk loading.', err); + this.log.warn('Error instantiating component for forced chunk loading.', err); component = null; } diff --git a/src/utilities/logging.js b/src/utilities/logging.js index 514930ef..fdedb15a 100644 --- a/src/utilities/logging.js +++ b/src/utilities/logging.js @@ -44,6 +44,10 @@ export class Logger { return this.invoke(Logger.WARN, args); } + warning(...args) { + return this.invoke(Logger.WARN, args); + } + error(...args) { return this.invoke(Logger.ERROR, args); } @@ -115,6 +119,7 @@ Logger.DEFAULT_LEVEL = 2; Logger.DEBUG = 1; Logger.INFO = 2; Logger.WARN = 4; +Logger.WARNING = 4; Logger.ERROR = 8; Logger.OFF = 99;