-
Notifications
You must be signed in to change notification settings - Fork 309
[v1.3] GM API 定义修正 #1132
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
base: release/v1.3
Are you sure you want to change the base?
[v1.3] GM API 定义修正 #1132
Conversation
CodFrm
left a comment
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.
函数签名改动了,我放到release/v1.3了
| } | ||
|
|
||
| @GMContext.API() | ||
| @GMContext.API({ depend: ["GM_setValue"] }) |
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.
怎么依赖自己
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.
只为了统一写好看一点。依赖的部份是后台 service_worker 的 GM_setValue
当然因为同一名字,service_worker 的 GM_setValue 会自动授权
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.
呀,我理解錯了。加了可能有問題。我改
|
37f6dee to
a2e0a74
Compare
|
ScriptCat 設計問題, this.XXXX 設計導致 需要 depend
反過來 TM 不 depend 的話在後台API加 link也是可行 現在搞一堆 this this this的 OOP設計 |
Uh oh!
There was an error while loading. Please reload this page.