Adrià Vilanova Martínez | 58cc67c | 2024-04-21 16:43:01 +0200 | [diff] [blame] | 1 | import { |
| 2 | ScriptEnvironment, |
| 3 | ScriptPage, |
| 4 | ScriptRunPhase, |
| 5 | } from '../../../common/architecture/scripts/Script'; |
| 6 | import Features from '../../../features/Features'; |
Adrià Vilanova Martínez | ab4c80e | 2024-05-04 19:53:33 +0200 | [diff] [blame^] | 7 | import ScriptRunner from '../../../common/architecture/scripts/ScriptRunner'; |
Adrià Vilanova Martínez | 58cc67c | 2024-04-21 16:43:01 +0200 | [diff] [blame] | 8 | |
| 9 | // Run legacy Javascript entry point |
| 10 | import '../../../contentScripts/communityConsole/start'; |
| 11 | |
| 12 | const features = new Features(); |
Adrià Vilanova Martínez | ab4c80e | 2024-05-04 19:53:33 +0200 | [diff] [blame^] | 13 | const scripts = features.getScripts({ |
Adrià Vilanova Martínez | 58cc67c | 2024-04-21 16:43:01 +0200 | [diff] [blame] | 14 | page: ScriptPage.CommunityConsole, |
| 15 | environment: ScriptEnvironment.ContentScript, |
| 16 | runPhase: ScriptRunPhase.Start, |
| 17 | }); |
Adrià Vilanova Martínez | ab4c80e | 2024-05-04 19:53:33 +0200 | [diff] [blame^] | 18 | |
| 19 | const scriptRunner = new ScriptRunner(); |
| 20 | scriptRunner.add(...scripts); |
| 21 | scriptRunner.run(); |