Skip to content

Commit

Permalink
Clean up example
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkBiesheuvel committed Jul 14, 2023
1 parent 52a4c31 commit 1a93787
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions page-activation-trigger/scroll-to-element.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
// Using the "When a callback is called" page activation trigger
// See https://docs.developers.optimizely.com/web/docs/dynamic-websites#section-callback


// Use "old" function syntax as the Optimizely editor does not allow arrow syntax here
function callbackFn(activate) {

// Get Optimizely Utilities library
Expand All @@ -26,7 +23,7 @@ function callbackFn(activate) {
}
});
});

// Only activate the page/experiment once the container is visible
observer.observe(elem);
});
Expand Down

0 comments on commit 1a93787

Please sign in to comment.