diff --git a/package.json b/package.json index 5ccdbef1..627b4ba0 100755 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "frankerfacez", "author": "Dan Salvato LLC", - "version": "4.55.2", + "version": "4.55.3", "description": "FrankerFaceZ is a Twitch enhancement suite.", "private": true, "license": "Apache-2.0", diff --git a/src/experiments.json b/src/experiments.json index 68f1ba26..077f7910 100644 --- a/src/experiments.json +++ b/src/experiments.json @@ -12,8 +12,8 @@ "description": "Use the new API to look up links instead of the socket cluster.", "groups": [ {"value": true, "weight": 30}, - {"value": "cf", "weight": 5}, - {"value": false, "weight": 65} + {"value": "cf", "weight": 10}, + {"value": false, "weight": 60} ] }, "pubsub": { diff --git a/src/modules/chat/index.js b/src/modules/chat/index.js index 641b58be..75703954 100644 --- a/src/modules/chat/index.js +++ b/src/modules/chat/index.js @@ -132,7 +132,7 @@ export default class Chat extends Module { });*/ this.settings.add('debug.link-resolver.source', { - process(ctx, val) { + process: (ctx, val) => { if ( val == null ) { const exp = this.experiments.getAssignment('api_links'); if ( exp === 'cf' ) diff --git a/src/utilities/rich_tokens.js b/src/utilities/rich_tokens.js index b46f6754..29c1bd3f 100644 --- a/src/utilities/rich_tokens.js +++ b/src/utilities/rich_tokens.js @@ -61,16 +61,16 @@ function applySpacing(term, token, classes, styles) { const thing = term === 'pd' ? 'padding' : 'margin'; if ( mode === '' ) styles[thing] = value; - if ( mode === 'x' || mode === 'l' ) + if ( mode === '-x' || mode === '-l' ) styles[`${thing}-left`] = value; - if ( mode === 'x' || mode === 'r' ) + if ( mode === '-x' || mode === '-r' ) styles[`${thing}-right`] = value; - if ( mode === 'y' || mode === 't' ) + if ( mode === '-y' || mode === '-t' ) styles[`${thing}-top`] = value; - if ( mode === 'y' || mode === 'b' ) + if ( mode === '-y' || mode === '-b' ) styles[`${thing}-bottom`] = value; } } @@ -501,7 +501,9 @@ TOKEN_TYPES.gallery = function(token, createElement, ctx) { if ( ! token.items ) return null; - let items = token.items.map(item => renderTokens(item, createElement, ctx)).filter(x => x); + let items = token.items + .map(item => renderTokens(item, createElement, ctx)) + .filter(x => x); if ( ! items.length ) return null;