doc: sdk 使用了 __local_store_support__: testIsSupportStorage 存储键值对来探测客户端对 localStorage 的支持

Open Beginner friendly
#116 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
64/100
Issue type
Documentation
Clarity
Mostly clear
Activity status
Quiet
Tech stack
javascript
Domain
documentation

Research direction

Start by locating the SDK documentation that describes localStorage support detection. Document that testIsSupportStorage uses the local_store_support key and may trigger StorageEvent interference for sites that use it; done means this compatibility behavior and its possible impact are clearly stated.

Written by the indexing model from the issue text.

Description

sdk 使用了 local_store_support: testIsSupportStorage 存储键值对来客户端对探测 localStorage 的支持,如果网站本身有使用 StorageEvent,那么这个探测会对网站造成干扰,且不好排查来源,请将此兼容探测行为标注到 sdk 文档中

Dominant language
JavaScript
Stars
957
Forks
541
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from sensorsdata/sa-sdk-javascript

All issues in sensorsdata/sa-sdk-javascript

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.