mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-10-13 22:41:57 +00:00
The Great Webpack Update.
* Update to version 4 of webpack. * For that matter, update *every dependency* to the latest available version. * Remove the babel build target for Edge, as it doesn't seem to be necessary with webpack 4 and tenser. * Add support for optional chaining and nullish coalescing via Babel transformations. * Update the clips domain version to work better. Or at all, really. * Remove unused code from i18n. * Remove the last `<style>` from vue component files. They don't work that way now anyways. * Fix a bug in Raven's report handler. * Fix a bug with the menu button in browsers that don't understand `:scope` within `querySelector()`.
This commit is contained in:
parent
567708b7f1
commit
014eb203c3
31 changed files with 3106 additions and 5715 deletions
|
@ -6,7 +6,7 @@
|
|||
// ============================================================================
|
||||
|
||||
import Module from 'utilities/module';
|
||||
import {has, once} from 'utilities/object';
|
||||
import {has} from 'utilities/object';
|
||||
|
||||
|
||||
let last_muncher = 0;
|
||||
|
|
|
@ -32,8 +32,8 @@ export function duration_to_string(elapsed, separate_days, days_only, no_hours,
|
|||
|
||||
|
||||
export function print_duration(seconds) {
|
||||
let minutes = Math.floor(seconds / 60),
|
||||
hours = Math.floor(minutes / 60);
|
||||
let minutes = Math.floor(seconds / 60);
|
||||
const hours = Math.floor(minutes / 60);
|
||||
|
||||
minutes %= 60;
|
||||
seconds %= 60;
|
||||
|
|
|
@ -445,7 +445,7 @@ export default class TranslationCore {
|
|||
if ( locale == null )
|
||||
locale = this.locale;
|
||||
|
||||
let val = get(node.v, data);
|
||||
const val = get(node.v, data);
|
||||
if ( val == null )
|
||||
return null;
|
||||
|
||||
|
|
|
@ -173,7 +173,7 @@ export default class TwitchData extends Module {
|
|||
// ========================================================================
|
||||
|
||||
getStreamMeta(id, login) {
|
||||
return new Promise(async (s, f) => {
|
||||
return new Promise((s, f) => {
|
||||
if ( id ) {
|
||||
if ( this._waiting_stream_ids.has(id) )
|
||||
this._waiting_stream_ids.get(id).push([s, f]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue