Adrià Vilanova Martínez | 33a009c | 2024-11-09 22:41:56 +0100 | [diff] [blame] | 1 | import Script, { ScriptEnvironment, ScriptPage, ScriptRunPhase } from "../../../common/architecture/scripts/Script" |
| 2 | import MWOptionsWatcherServer from "../../../common/mainWorldOptionsWatcher/Server" |
| 3 | import { kCSTarget, kMWTarget } from "../../../xhrInterceptor/responseModifiers" |
Adrià Vilanova Martínez | 2ba5d8d | 2024-05-04 21:17:16 +0200 | [diff] [blame] | 4 | |
| 5 | export default class MWOptionsWatcherServerScript extends Script { |
| 6 | // The server should be available as soon as possible, since e.g. the |
| 7 | // XHRProxy already sends a request to the optionsWatcher server as soon as it |
| 8 | // is constructed. |
| 9 | priority = 0; |
| 10 | |
| 11 | page = ScriptPage.CommunityConsole; |
| 12 | environment = ScriptEnvironment.ContentScript; |
| 13 | runPhase = ScriptRunPhase.Start; |
| 14 | |
| 15 | execute() { |
| 16 | new MWOptionsWatcherServer(kCSTarget, kMWTarget); |
| 17 | } |
| 18 | } |