Skip to content
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

Remove all global vars in plugins to avoid conflicts #25

Open
0x24a opened this issue Mar 3, 2024 · 1 comment
Open

Remove all global vars in plugins to avoid conflicts #25

0x24a opened this issue Mar 3, 2024 · 1 comment

Comments

@0x24a
Copy link
Member

0x24a commented Mar 3, 2024

If multiple plugins use the same global variable names, there will be conflict issues and should be modified.

@cmd1152
Copy link
Contributor

cmd1152 commented Mar 29, 2024

我的想法是直接规定每个插件必须把变量存为自己名称的obj下,比如 id 是 this_a_plugins 的插件,就储存在 pluginsvar.this_a_plugins下,这样子可以避免命名冲突,但是不方便

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants