Clone Editor- Snippets

  1. Navigate to the Configure tab within your demo  

    Screenshot 2025-01-17 at 2.45.29 PM.png

  2. Use the snippet dropdown to see all available 

    Screenshot 2025-01-17 at 2.46.05 PM.png

  3. Press the New Snippet button and either select a template or blank snippet 


    Screenshot 2025-01-17 at 2.46.42 PM.png

  4. In the snippet type dropdown, choose between a custom JS snippet or a replay backend snippet. HTML Environment backend snippets are used for backend JavaScript edits and usually start with "replay_backend". Otherwise, use custom JS for any customizations you'd like to make.

    Screenshot 2025-01-17 at 2.47.17 PM.png

  5. Choose a snippet category from the available options.

    Screenshot 2025-01-17 at 2.47.44 PM.png

  6. Choose an app to apply this snippet. Follow the instructions in Settings to set up your Clone Environment App. Once configured, you can apply this snippet to the app and reuse it across multiple demos when capturing it.

    Screenshot 2025-01-17 at 2.44.30 PM.png

  7. Decide whether to make this a global snippet using the toggle. Global snippets can be managed in settings in your Reprise portal. 

    Screenshot 2025-01-17 at 2.48.16 PM.png

  8. Write the snippet code and click "Save snippet" to save your changes.

    snippet code goes here.JPG

  9. To delete your snippet, select the trashcan icon that appears next to it

    Delete Snippets .png

 

To learn more, reference this Clone Environment Backend API document. You can use our API to manage requests made from apps to our backends. The main purpose of this is to allow custom responses for requests to be set at the replay-level. This could be used for a variety of different things including solving authentication state bugs, inserting data where needed to fix 404 errors, or customizing data in a replay.


Was this article helpful?
0 out of 0 found this helpful
Have more questions?
Submit a request
Share it, if you like it.