Activate survey extension only on main renderer (#2145)

Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
This commit is contained in:
Lauri Nevala authored and GitHub committed 2021-02-12 19:04:12 +02:00
1 parent 4513a08b1f
commit ebf9177098
1 file changed
+3
+3
View File
@@ -15,7 +15,10 @@ export default class SurveyRendererExtension extends LensRendererExtension {
} }
]; ];
async onActivate() { async onActivate() {
// Activate extension only on main renderer
if (window.location.hostname === "localhost") {
await surveyPreferencesStore.loadExtension(this); await surveyPreferencesStore.loadExtension(this);
survey.start(); survey.start();
} }
}
} }