User:Guywan/Scripts/InsertShortcuts.js: Difference between revisions

Content deleted Content added
maintenance: more info Uncaught TypeError: wikitext.startsWith is not a function
maintenance: more info wikitext is array. startsWith is a string method.
 
Line 33:
this.getWikitext(page, wikitext =>
{
if(typeof wikitext === 'string' && wikitext.startsWith("!!REDIRECT"))
{
project = wikitext.split(" ")[1];