User:Theleekycauldron/Scripts/PSHAW/dependencies/Prep.js: Difference between revisions

Content deleted Content added
forgot to initialize "my people go"
aha
Line 34:
loadHooks(){
let hooktextsplittext = this.content.split("\n");
let ip = [this.contentsplittext.indexOf("<!--Hooks-->")+2,this.contentsplittext.indexOf("<!--HooksEnd-->"),this.contentsplittext.indexOf("-->")+1,this.contentsplittext.indexOf("</div>")]; //important split points
hooktext = this.contentsplittext.slice(ip[0],ip[1]);
console.log(ip)
let creditstext = this.contentsplittext.slice(ip[2],ip[3]);
hooktext = this.content.slice(ip[0],ip[1]);
let creditstext = this.content.slice(ip[2],ip[3]);
this.hooks = []
for (var h=0; h<hooktext.length; h++){