1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-10-14 06:51:58 +00:00

More work on viewer cards. Enable the rich card provider for videos. Start working on a standard data model for chat lines. Add a dev build notice to the menu button. Work on player no-hosting logic. Work on getting Room lines ready. Attempt to fix webmunch not working with a read-only webpackJsonp. Start adding logviewer support.

This commit is contained in:
SirStendec 2018-05-18 02:10:00 -04:00
parent 40a829355f
commit 6c77e2ca5c
26 changed files with 809 additions and 103 deletions

View file

@ -45,7 +45,17 @@ export default class WebMunch extends Module {
}
this.log.info(`Found and wrapped webpack's loader after ${(attempts||0)*250}ms.`);
window.webpackJsonp = this.webpackJsonp.bind(this);
try {
window.webpackJsonp = this.webpackJsonp.bind(this);
} catch(err) {
this.log.info('Unable to wrap webpackJsonp normally due to write-protection. Escalating.');
try {
Object.defineProperty(window, 'webpackJsonp', {value: this.webpackJsonp.bind(this)});
} catch(e2) {
this.log.info('Unable to wrap webpackJsonp at this time. Some functionality may be broken as a result.');
}
}
}
webpackJsonp(chunk_ids, modules) {

View file

@ -9,6 +9,11 @@ export const NEW_API = '//api-test.frankerfacez.com';
export const SENTRY_ID = 'https://18f42c65339d4164b3fdebfc8c8bc99b@sentry.io/1186960';
export const LV_SERVER = 'https://cbenni.com/api';
export const LV_SOCKET_SERVER = 'wss://cbenni.com/socket.io/';
export const TWITCH_EMOTE_BASE = '//static-cdn.jtvnw.net/emoticons/v1/';
export const KNOWN_CODES = {