Skip to content

Commit 8cdef39

Browse files
committed
allow force treatment with env variable
1 parent cc500a4 commit 8cdef39

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

javascripts/experiment.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ function applyTreatment (toggleButton) {
3232
export default function () {
3333
// *** Example test code ***
3434
const testName = 'toggle-images'
35-
const xbucket = bucket(testName)
35+
const xbucket = process.env.TEST_TREATMENT
36+
? 'TREATMENT'
37+
: bucket(testName)
3638
const x = document.getElementById('js-toggle-images')
3739
if (!x) return
3840

0 commit comments

Comments
 (0)