diff --git a/dist/PurgePageCache/PurgePageCache.js b/dist/PurgePageCache/PurgePageCache.js index 4ee28ba..55e0a6f 100644 --- a/dist/PurgePageCache/PurgePageCache.js +++ b/dist/PurgePageCache/PurgePageCache.js @@ -221,7 +221,7 @@ void (0, import_ext_gadget4.getBody)().then(function purgePageCache($body) { return; } const portletId = $body.find("#p-cactions").length ? "p-cactions" : "p-tb"; - const portletElement = mw.util.addPortletLink(portletId, "#", getMessage("Purge"), getMessage("PurgeFromServer")); + const portletElement = mw.util.addPortletLink(portletId, getMessage("Purge"), getMessage("PurgeFromServer")); if (!portletElement) { return; } @@ -250,4 +250,4 @@ void (0, import_ext_gadget4.getBody)().then(function purgePageCache($body) { /* */ -//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsic3JjL1B1cmdlUGFnZUNhY2hlL1B1cmdlUGFnZUNhY2hlLnRzIiwgInNyYy9QdXJnZVBhZ2VDYWNoZS9tb2R1bGVzL2kxOG4udHMiLCAic3JjL1B1cmdlUGFnZUNhY2hlL29wdGlvbnMuanNvbiIsICJzcmMvUHVyZ2VQYWdlQ2FjaGUvbW9kdWxlcy9hcGkudHMiLCAic3JjL1B1cmdlUGFnZUNhY2hlL21vZHVsZXMvcHVyZ2UudHMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImltcG9ydCB7Z2V0Qm9keX0gZnJvbSAnZXh0LmdhZGdldC5VdGlsJztcbmltcG9ydCB7Z2V0TWVzc2FnZX0gZnJvbSAnLi9tb2R1bGVzL2kxOG4nO1xuaW1wb3J0IHtwdXJnZX0gZnJvbSAnLi9tb2R1bGVzL3B1cmdlJztcblxudm9pZCBnZXRCb2R5KCkudGhlbihmdW5jdGlvbiBwdXJnZVBhZ2VDYWNoZSgkYm9keTogSlF1ZXJ5PEhUTUxCb2R5RWxlbWVudD4pOiB2b2lkIHtcblx0Y29uc3Qge3dnQWN0aW9uLCB3Z1BhZ2VOYW1lLCB3Z05hbWVzcG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VOdW1iZXIiLCAicG9ydGxldElkIiwgImZpbmQiLCAibGVuZ3RoIiwgInBvcnRsZXRFbGVtZW50IiwgInV0aWwiLCAiYWRkUG9ydGxldExpbmsiLCAicXVlcnlTZWxlY3RvciIsICJhZGRFdmVudExpc3RlbmVyIiwgImV2ZW50IiwgInByZXZlbnREZWZhdWx0IiwgIl9pdGVyYXRvcjIiLCAiX2NyZWF0ZUZvck9mSXRlcmF0b3JIZWxwZXIiLCAiX3N0ZXAyIiwgInMiLCAibiIsICJkb25lIiwgImVsZW1lbnQiLCAidmFsdWUiLCAiZ2V0UGFyYW1WYWx1ZSIsICJocmVmIiwgImVyciIsICJlIiwgImYiXQp9Cg== diff --git a/src/PurgePageCache/PurgePageCache.ts b/src/PurgePageCache/PurgePageCache.ts index f7ca063..1ac9afa 100644 --- a/src/PurgePageCache/PurgePageCache.ts +++ b/src/PurgePageCache/PurgePageCache.ts @@ -12,7 +12,6 @@ void getBody().then(function purgePageCache($body: JQuery): voi const portletId: 'p-cactions' | 'p-tb' = $body.find('#p-cactions').length ? 'p-cactions' : 'p-tb'; const portletElement: HTMLLIElement | null = mw.util.addPortletLink( portletId, - '#', getMessage('Purge'), getMessage('PurgeFromServer') );