1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-09-17 02:16:54 +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) {