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

Content deleted Content added
maintenance: more info Uncaught TypeError: Cannot read property '0' of undefined
maintenance: more info wikitext is array. startsWith is a string method.
 
(One intermediate revision by the same user not shown)
Line 33:
this.getWikitext(page, wikitext =>
{
if(typeof wikitext === 'string' && wikitext.startsWith("!!REDIRECT"))
{
project = wikitext.split(" ")[1];