mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Activate survey extension only on main renderer
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
This commit is contained in:
parent
d40bd0c7d0
commit
0432724ce3
@ -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