diff --git a/README.md b/README.md index cf189972..99b37d50 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ PageSpy 所有的参数都是可选的,下面是各个属性的说明及其默认值: -```tsx +```ts window.$pageSpy = new PageSpy(config?: InitConfig) interface InitConfig { diff --git a/README_EN.md b/README_EN.md index 390b52ad..c6aea73e 100644 --- a/README_EN.md +++ b/README_EN.md @@ -36,7 +36,9 @@ After the integration, open your project in browser, there should be a widget (r All parameters are optional, here is a description of each property and its default value: -```tsx +```ts +window.$pageSpy = new PageSpy(config?: InitConfig) + interface InitConfig { // The SDK automatically analyses and determines the address of // the Server (api) and the address of the debug side (clientOrigin)