Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function _getInstance(datafile) {
if (!optlyInstance) {
optlyInstance = optimizely.createInstance({
datafile,
logger: optimizelyLoggerFactory.createLogger({
logLevel: 2,
}),
skipJSONValidation: true, // This should be set to false if we modify the datafile in any way
})
}
return optlyInstance
}
function _getInstance(datafile) {
if (!optlyInstance) {
optlyInstance = optimizely.createInstance({
datafile,
logger: optimizelyLoggerFactory.createLogger({
logLevel: 2,
}),
skipJSONValidation: true, // This should be set to false if we modify the datafile in any way
})
}
return optlyInstance
}