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

[BUG]动态注入第三方script资源时,存在重复添加maxkb标签问题 #1659

Open
lambert959 opened this issue Nov 19, 2024 · 1 comment
Assignees
Milestone

Comments

@lambert959
Copy link

联系方式

No response

MaxKB 版本

v1.3.1

问题描述

动态注入第三方maxkb时,出现多次添加maxkb节点

重现步骤

image

image
页面加载后再动态注入时,只执行了一次script.onload事件,正常显示一个maxkb节点
如果页面刷新会导致先执行了script.onload,后执行window.onload,在页面添加了两次maxkb节点

期待的正确结果

embed.js 增加节点已存在的判断,不在重复添加

image

相关日志输出

No response

附加信息

No response

@zyyfit zyyfit added this to the v1.8.0 milestone Nov 22, 2024
@zyyfit
Copy link

zyyfit commented Nov 22, 2024

感谢反馈,后续版本优化

@zyyfit zyyfit modified the milestones: v1.8.0, v1.9.0 Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants