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
+5 -2
+5 -2
View File
@@ -15,7 +15,10 @@ export default class SurveyRendererExtension extends LensRendererExtension {
}
];
async onActivate() {
await surveyPreferencesStore.loadExtension(this);
survey.start();
// Activate extension only on main renderer
if (window.location.hostname === "localhost") {
await surveyPreferencesStore.loadExtension(this);
survey.start();
}
}
}