mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-08-05 22:00:54 +00:00
Add-Ons Loader System (#606)
Implements an Add-on Loader so that other add-ons, such as the FFZ Add-on Pack, can be loaded directly by FFZ without requiring the user to install multiple extensions into their browser.
This commit is contained in:
parent
d9f252ee4e
commit
a305d03b2c
20 changed files with 716 additions and 11 deletions
|
@ -4,7 +4,7 @@
|
|||
// Experiments
|
||||
// ============================================================================
|
||||
|
||||
import {SERVER} from 'utilities/constants';
|
||||
import {DEBUG, SERVER} from 'utilities/constants';
|
||||
import Module from 'utilities/module';
|
||||
import {has, deep_copy} from 'utilities/object';
|
||||
|
||||
|
@ -75,7 +75,7 @@ export default class ExperimentManager extends Module {
|
|||
let data;
|
||||
|
||||
try {
|
||||
data = await fetch(`${SERVER}/script/experiments.json?_=${Date.now()}`).then(r =>
|
||||
data = await fetch(DEBUG ? EXPERIMENTS : `${SERVER}/script/experiments.json?_=${Date.now()}`).then(r =>
|
||||
r.ok ? r.json() : null);
|
||||
|
||||
} catch(err) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue