User:The Transhumanist/QuickPortal.js: Difference between revisions

Content deleted Content added
try just the variable in the conditional: if (selectedArticle)
if (selectedArticle) worked!; update comment
Line 60:
 
// Create the "Restart portal" menu item for when "Portal:" is not missing from the title,
// and the portal is of the old style portal (has the old section "Selected article", that is index returns value for that section title)
var selectedArticle = document.getElementById("Selected_article");
if ((document.title.indexOf("Portal:") != -1) && (selectedArticle)) {