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:
parent
4513a08b1f
commit
ebf9177098
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user