Skip to content

fix: Revise sandbox setting#32

Merged
alexs-mparticle merged 1 commit into
developmentfrom
fix/SQDSDKS-7362-sandbox-setting
Jun 3, 2025
Merged

fix: Revise sandbox setting#32
alexs-mparticle merged 1 commit into
developmentfrom
fix/SQDSDKS-7362-sandbox-setting

Conversation

@alexs-mparticle

Copy link
Copy Markdown
Collaborator

Summary

  • Fixes implementation of sandbox in the Rokt Web kit by making it a launcher option.

Testing Plan

  • Using a sample app, verify that window.mParticle.config.isDevelopmentMode = true enables sandbox = true in the Rokt Web SDK

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR refactors how the sandbox flag is applied in the Rokt Web kit by moving it from managerOptions into launcherOptions.

  • Moved sandbox setting out of managerOptions and into launcherOptions
  • Updated attachLauncher signature and merge logic to use only launcherOptions
  • Updated unit tests to reference launcherOptions instead of managerOptions

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
test/src/tests.js Updated tests to use launcherOptions in place of managerOptions
src/Rokt-Kit.js Removed managerOptions handling, adjusted attachLauncher accordingly
Comments suppressed due to low confidence (1)

test/src/tests.js:144

  • [nitpick] Add a test case to verify that when launcherOptions.sandbox is omitted, the SDK still defaults to sandbox=false to guard against regressions in default behavior.
it('should set sandbox to true if sandbox is true in launcherOptions', async () => {

Comment thread src/Rokt-Kit.js
@alexs-mparticle alexs-mparticle merged commit 98c380e into development Jun 3, 2025
4 checks passed
alexs-mparticle added a commit that referenced this pull request Jun 3, 2025
github-actions Bot pushed a commit that referenced this pull request Jun 3, 2025
## [1.4.1](v1.4.0...v1.4.1) (2025-06-03)

### Bug Fixes

* Revise sandbox setting ([#32](#32)) ([f79830b](f79830b))
@alexs-mparticle alexs-mparticle deleted the fix/SQDSDKS-7362-sandbox-setting branch March 25, 2026 15:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants