blob: dca90d6adfa8866078acf350368c368985adaa71 [file] [log] [blame]
Adrià Vilanova Martínez2ba5d8d2024-05-04 21:17:16 +02001import Script, { ConcreteScript } from '../common/architecture/scripts/Script';
2import ScriptFilterListProvider from '../common/architecture/scripts/ScriptFilterListProvider';
3import MWI18nServerScript from './mainWorldServers/MWI18nServerScript.script';
4import MWOptionsWatcherServerScript from './mainWorldServers/MWOptionsWatcherServerScript.script';
5import XHRInterceptorScript from './xhrInterceptor/xhrInterceptor.script';
6
7export default class StandaloneScripts extends ScriptFilterListProvider {
8 private scripts: ConcreteScript[] = [
9 MWI18nServerScript,
10 MWOptionsWatcherServerScript,
11 XHRInterceptorScript,
12 ];
13 private initializedScripts: Script[];
14
15 protected getUnfilteredScriptsList() {
16 if (this.initializedScripts === undefined) {
17 this.initializedScripts = this.scripts.map((script) => new script());
18 }
19 return this.initializedScripts;
20 }
21}