Skip to content

Commit

Permalink
fix: 清除缓存按钮去掉首页
Browse files Browse the repository at this point in the history
  • Loading branch information
BearBin1215 committed Oct 15, 2023
1 parent c59f95f commit 8ee683b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gadgets/Purgecache/MediaWiki:Gadget-Purgecache.js
Expand Up @@ -9,7 +9,7 @@ $(() => {
* @param {string} failText 清除失败文本
* @returns {JQuery<HTMLElement>}
*/
if (!mw.config.get("wgIsArticle")) {
if (!mw.config.get("wgIsArticle") || mw.config.get("wgPageName") === "Mainpage") {
return;
}
const $purgeButton = (
Expand Down

0 comments on commit 8ee683b

Please sign in to comment.