Skip to content

Commit

Permalink
Switching location of the condition
Browse files Browse the repository at this point in the history
  • Loading branch information
nacaru-w committed Jun 22, 2023
1 parent 5e68338 commit bd227fd
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,11 @@ const initializeTwinkleLite = () => {
PPportletLink.onclick = PageProtection.createFormWindow;
let SDportletLink = mw.util.addPortletLink('p-cactions', '#', 'Borrado rápido', 'example-button', 'Solicita el borrado rápido de la página');
SDportletLink.onclick = SpeedyDeletion.createFormWindow;
if (mw.config.get('wgNamespaceNumber') === 0 || mw.config.get('wgNamespaceNumber') === 104) {
let TportleltLink = mw.util.addPortletLink('p-cactions', '#', 'Añadir plantilla', 'example-button', 'Añade una plantilla a la página');
TportleltLink.onclick = Tags.createFormWindow;
}
}

if (mw.config.get('wgNamespaceNumber') === 0 || mw.config.get('wgNamespaceNumber') === 104) {
let TportleltLink = mw.util.addPortletLink('p-cactions', '#', 'Añadir plantilla', 'example-button', 'Añade una plantilla a la página');
TportleltLink.onclick = Tags.createFormWindow;
}

if (mw.config.get('wgNamespaceNumber') === 2 || mw.config.get('wgNamespaceNumber') === 3 || (mw.config.get('wgPageName').indexOf("Especial:Contribuciones") > -1)) {
Expand Down

0 comments on commit bd227fd

Please sign in to comment.