Expose constant SKIP_TIME_THRESHOLD as skipTimeThreshold in replayer#1408
Conversation
|
guide.md
Outdated
| | root | document.body | the root element of replayer | | ||
| | loadTimeout | 0 | timeout of loading remote style sheet | | ||
| | skipInactive | false | whether to skip inactive time | | ||
| | skipTimeThreshold | 10000 | a threshold of inactive time in milliseconds | |
There was a problem hiding this comment.
| | skipTimeThreshold | 10000 | a threshold of inactive time in milliseconds | | |
| | skipTimeThreshold | 10000 | the threshold in milliseconds for what should be considered an inactive period | |
|
Thanks for your contribution! I don't use the svelte player but this looks good. May I suggest a better name for the config setting? Maybe |
I did the change to |
…layer (rrweb-io#1408) Expose constant SKIP_TIME_THRESHOLD as `inactivePeriodThreshold` config setting in replayer
…layer (rrweb-io#1408) Expose constant SKIP_TIME_THRESHOLD as `inactivePeriodThreshold` config setting in replayer
…layer (rrweb-io#1408) Expose constant SKIP_TIME_THRESHOLD as `inactivePeriodThreshold` config setting in replayer
…layer (rrweb-io#1408) Expose constant SKIP_TIME_THRESHOLD as `inactivePeriodThreshold` config setting in replayer
There is this hardcoded constant
SKIP_TIME_THRESHOLDto define the amount of time in milliseconds of an inactive period. By default it is set to 10 seconds, but I believe this should be exposed as a configuration option of the replayer so that users may configure it to fit their needs.This pull request exposes
SKIP_TIME_THRESHOLDasskipTimeThreshold.