Exclude incident app from sandbox
This commit is contained in:
@@ -38,6 +38,8 @@ export function logError(error: Error, context?: LogContext) {
|
||||
logErrorRuntime(error, context);
|
||||
}
|
||||
|
||||
const excludePluginSandbox = ['grafana-incident-app'];
|
||||
|
||||
export function isFrontendSandboxSupported({
|
||||
isAngular,
|
||||
pluginId,
|
||||
@@ -47,7 +49,8 @@ export function isFrontendSandboxSupported({
|
||||
}): boolean {
|
||||
// To fast test and debug the sandbox in the browser.
|
||||
const sandboxQueryParam = location.search.includes('nosandbox') && config.buildInfo.env === 'development';
|
||||
const isPluginExcepted = config.disableFrontendSandboxForPlugins.includes(pluginId);
|
||||
const isPluginExcepted =
|
||||
config.disableFrontendSandboxForPlugins.includes(pluginId) || excludePluginSandbox.includes(pluginId);
|
||||
return (
|
||||
!isAngular &&
|
||||
Boolean(config.featureToggles.pluginsFrontendSandbox) &&
|
||||
|
||||
Reference in New Issue
Block a user