floating-live 0.17.0-alpha.1 → 0.17.0-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -189,8 +189,8 @@ export class PluginManager {
189
189
  this.whenRegisterMap.set(pluginName, new Map([[callback, null]]));
190
190
  }
191
191
  else {
192
- // 确保回调函数不重复注册
193
- if (!this.whenRegisterMap.get(pluginName).has(callback)) {
192
+ // 确保回调函数不重复注册,如果重复,则直接返回
193
+ if (this.whenRegisterMap.get(pluginName).has(callback)) {
194
194
  return;
195
195
  }
196
196
  // 如果目标插件的回调列表已存在,直接添加回调函数
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "floating-live",
3
- "version": "0.17.0-alpha.1",
3
+ "version": "0.17.0-alpha.2",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",