1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Activate survey extension only on main renderer (#2145)

Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
This commit is contained in:
Lauri Nevala 2021-02-12 19:04:12 +02:00 committed by GitHub
parent 4513a08b1f
commit ebf9177098
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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