Revert js changes. use config
This commit is contained in:
+1
-1
@@ -382,7 +382,7 @@ angular_support_enabled = true
|
||||
csrf_always_check = false
|
||||
|
||||
# Comma-separated list of plugins ids that won't be loaded inside the frontend sandbox
|
||||
disable_frontend_sandbox_for_plugins =
|
||||
disable_frontend_sandbox_for_plugins = grafana-incident-app
|
||||
|
||||
[security.encryption]
|
||||
# Defines the time-to-live (TTL) for decrypted data encryption keys stored in memory (cache).
|
||||
|
||||
@@ -38,8 +38,6 @@ export function logError(error: Error, context?: LogContext) {
|
||||
logErrorRuntime(error, context);
|
||||
}
|
||||
|
||||
const excludePluginSandbox = ['grafana-incident-app'];
|
||||
|
||||
export function isFrontendSandboxSupported({
|
||||
isAngular,
|
||||
pluginId,
|
||||
@@ -49,8 +47,7 @@ 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) || excludePluginSandbox.includes(pluginId);
|
||||
const isPluginExcepted = config.disableFrontendSandboxForPlugins.includes(pluginId);
|
||||
return (
|
||||
!isAngular &&
|
||||
Boolean(config.featureToggles.pluginsFrontendSandbox) &&
|
||||
|
||||
Reference in New Issue
Block a user