blob: 2410f2c5354a30e2c523926c236f8be244a0048e [file] [log] [blame]
Adrià Vilanova Martínez58cc67c2024-04-21 16:43:01 +02001import {
2 ScriptEnvironment,
3 ScriptPage,
4 ScriptRunPhase,
5} from '../../../common/architecture/scripts/Script';
6import Features from '../../../features/Features';
Adrià Vilanova Martínezab4c80e2024-05-04 19:53:33 +02007import ScriptRunner from '../../../common/architecture/scripts/ScriptRunner';
Adrià Vilanova Martínez58cc67c2024-04-21 16:43:01 +02008
9// Run legacy Javascript entry point
10import '../../../contentScripts/communityConsole/start';
11
12const features = new Features();
Adrià Vilanova Martínezab4c80e2024-05-04 19:53:33 +020013const scripts = features.getScripts({
Adrià Vilanova Martínez58cc67c2024-04-21 16:43:01 +020014 page: ScriptPage.CommunityConsole,
15 environment: ScriptEnvironment.ContentScript,
16 runPhase: ScriptRunPhase.Start,
17});
Adrià Vilanova Martínezab4c80e2024-05-04 19:53:33 +020018
19const scriptRunner = new ScriptRunner();
20scriptRunner.add(...scripts);
21scriptRunner.run();