1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-06-27 21:05:53 +00:00

4.0.0-rc2. Add basic custom highlight terms and blocked terms. Change the socket cluster setting because users are users. Open settings in a new window if clicking the chat menu link with ctrl or shift. Hide the Get Bits button in the site navigation. Add an additional socket server.

This commit is contained in:
SirStendec 2018-05-31 18:34:15 -04:00
parent 6b2b734ef9
commit 2a790ad7cd
22 changed files with 669 additions and 48 deletions

View file

@ -22,12 +22,13 @@ export default class SocketClient extends Module {
this.inject('settings');
this.settings.add('socket.cluster', {
this.settings.add('socket.use-cluster', {
default: 'Production',
ui: {
path: 'Debugging @{"expanded": false, "sort": 9999} > Socket >> General',
title: 'Server Cluster',
description: 'Which server cluster to connect to. Do not change this unless you are actually doing development work on the socket server backend. Doing so will break all features relying on the socket server, including emote information lookups, link tooltips, and live data updates.',
component: 'setting-select-box',
@ -59,7 +60,7 @@ export default class SocketClient extends Module {
this._host_pool = -1;
this.settings.on(':changed:socket.cluster', () => {
this.settings.on(':changed:socket.use-cluster', () => {
this._host = null;
if ( this.disconnected)
this.connect();
@ -113,7 +114,7 @@ export default class SocketClient extends Module {
// ========================================================================
selectHost() {
const cluster_id = this.settings.get('socket.cluster'),
const cluster_id = this.settings.get('socket.use-cluster'),
cluster = WS_CLUSTERS[cluster_id],
l = cluster && cluster.length;