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

修复启用pjax后footer处自定义增删内容脚本不再重新加载的bug #963

Conversation

nicocatxzc
Copy link
Contributor

添加了启用pjax后跳转后仍需反复重新加载的脚本的内容,

少部分玩家可能在footer处引入了动态添加备案信息的玩法或者自定义增删全局内容的玩法,

但是很遗憾,为了能启用不中断播放的页底播放器,在启用pjax后这些脚本会在跳转后失效,

在header处引用虽然能加载但是动态修改内容功能无效了,所以现在需要在pjax加载完成后刷新一遍。

这段代码可以让那些魔改玩法保活。

@mirai-mamori mirai-mamori changed the base branch from main to preview October 31, 2024 06:54
@mirai-mamori mirai-mamori merged commit b81b4be into mirai-mamori:preview Oct 31, 2024
@nicocatxzc nicocatxzc deleted the Fix-the-footer-loading-bug-after-enabled-the-PJAX branch November 3, 2024 09:55
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

Successfully merging this pull request may close these issues.

2 participants