-
Notifications
You must be signed in to change notification settings - Fork 291
异歩 GM.getValue/getValues/listValues 修正 #898
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
cyfung1031
wants to merge
9
commits into
scriptscat:release/v1.3
from
cyfung1031:pr-get-list-value-lock
+693
−319
Closed
Changes from 1 commit
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
04d6641
异歩 GM.getValue/getValues/listValues 修正
cyfung1031 33bb307
重构 setValue/valueUpdate 的数据传递,以应付大量并发访问情况
cyfung1031 79ad4e2
updatetime 严格递增
cyfung1031 035ce3d
抽出成 `aNow()`
cyfung1031 e1ca48b
代码调整
cyfung1031 c0591d9
代码修正
cyfung1031 dafc0f3
permission放行 waitForFreshValueState
cyfung1031 de0af6f
优化 waitForFreshValueState 设计
cyfung1031 d238960
加入 extValueStoreCopy 设计使每个tab的valueChange->valueStore次序保持一致
cyfung1031 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GM_waitForFreshValueState 函数接收的参数声明为
GMApiRequest<[boolean]>,并验证参数长度必须为 1,但实际上并未使用该参数。在 content/gm_api.ts:255 调用时传递的是[true],但在函数内部完全没有使用request.params[0]。要么应该使用该参数,要么应该将类型改为GMApiRequest<[]>并移除长度验证。There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
之前好像不放东西的话,传送有问题。我没有看到其他没用param的API。
所以就放一个 true 了
先这样吧