refactor: migrate autorefresh feature to the new architecture
Bug: twpowertools:176
Change-Id: If000d8617e9a4d66bdc7f91c1037867a4cb9fbf2
diff --git a/src/platforms/communityConsole/entryPoints/start.ts b/src/platforms/communityConsole/entryPoints/start.ts
new file mode 100644
index 0000000..b7cb6eb
--- /dev/null
+++ b/src/platforms/communityConsole/entryPoints/start.ts
@@ -0,0 +1,16 @@
+import {
+ ScriptEnvironment,
+ ScriptPage,
+ ScriptRunPhase,
+} from '../../../common/architecture/scripts/Script';
+import Features from '../../../features/Features';
+
+// Run legacy Javascript entry point
+import '../../../contentScripts/communityConsole/start';
+
+const features = new Features();
+features.runScripts({
+ page: ScriptPage.CommunityConsole,
+ environment: ScriptEnvironment.ContentScript,
+ runPhase: ScriptRunPhase.Start,
+});