Set Track Script

Configures the track file script.

Syntax

store.dispatch({ type: "trackData/SET_TRACK_SCRIPT", payload: script });

Parameters

script

The new script to replace the current track script with.

Examples

Clears the script of the current track file.

store.dispatch({
  type: "trackData/SET_TRACK_SCRIPT",
  payload: ""
});