hypertrons / hypertrons-crx

A browser extension for insights into GitHub, Gitee projects and developers.
https://hypercrx.cn
Apache License 2.0
357 stars 103 forks source link

fix: fix GitHub token storage and obtain #900

Closed wangyantong2000 closed 4 weeks ago

wangyantong2000 commented 4 weeks ago

Brief Information

This pull request is in the type of (more info about types):

Related issues (all available keywords):

Details

I encountered an issue while developing other features that require the use of GitHub tokens. The feature of storing and using GitHub tokens on the option page previously done by others is not available, and you will find that you cannot obtain GitHub tokens already stored on other pages at all. I have already made the necessary changes to this section. localStorage.setItem:If you use localStorage in the options page of the plugin, the stored data can only be used in that option page and the same plugin context. Use the chrome. storage API to storage and obtain data. This API can share data in all contexts, including option pages and content scripts.

Checklist

Others