Skip to content

Commit c5ad59f

Browse files
chore: update plug web sdk migration doc (#278)
* chore: update plug web sdk migration doc * Update ue-migration.mdx --------- Co-authored-by: Atul-Butola <[email protected]>
1 parent 1deebc1 commit c5ad59f

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

fern/docs/pages/sdks/web/ue-migration.mdx

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,21 @@ ue.startRecording("<your_unique_app_id>")
5454

5555
window.plugSDK.init({
5656
app_id: "<your_unique_app_id>",
57+
disable_plug_chat_window: true,
5758
});
5859
window.plugSDK.onEvent((payload) => {
5960
if (payload.type === 'ON_OBSERVABILITY_READY') {
6061
// code you want to execute after recording starts
6162
}
6263
});
6364
```
65+
If you have configured Content Security Policy (CSP) in your application, you need to allow access to the following domains.
66+
- https://api.devrev.ai
67+
- https://plug-platform.devrev.ai
68+
- https://ingestion-useast1.devrev.ai - For organizations in the US East region.
69+
- https://ingestion-eucentral1.devrev.ai - For organizations in the EU Central region.
70+
- https://ingestion-apsouth1.devrev.ai - For organizations in the AP South region.
71+
6472
</Tab>
6573

6674
</Tabs>
@@ -110,6 +118,7 @@ ue.startRecording("243b0f40-db67-4f3e-b51d-c52001dd858a", {
110118

111119
window.plugSDK.init({
112120
app_id: "<your_unique_app_id>",
121+
disable_plug_chat_window: true,
113122
session_recording_options: {
114123
sessionReplay: {
115124
maskAllInputs?: boolean;
@@ -135,7 +144,6 @@ window.plugSDK.init({
135144
captureConsoleLogs?: boolean;
136145
}
137146
},
138-
enable_session_recording: true,
139147
})
140148
```
141149
</Tab>
@@ -268,7 +276,7 @@ Terminate the current session recording and start a new one.
268276
await window.plugSDK.shutdown();
269277
window.plugSDK.init({
270278
app_id: "<your_unique_app_id>",
271-
enable_session_recording: true,
279+
disable_plug_chat_window: true,
272280
});
273281
```
274282
</Tab>

0 commit comments

Comments
 (0)