User:Theleekycauldron/Scripts/PSHAW/dependencies/Prep.js: Difference between revisions
Content deleted Content added
yay |
forgot to initialize "my people go" |
||
Line 35:
loadHooks(){
let hooktext = this.content.split("\n");
console.log(ip)▼
let ip = [this.content.indexOf("<!--Hooks-->")+2,this.content.indexOf("<!--HooksEnd-->"),this.content.indexOf("-->")+1,this.content.indexOf("</div>")]; //important split points
▲ console.log(ip)
hooktext = this.content.slice(ip[0],ip[1]);
let creditstext = this.content.slice(ip[2],ip[3]);
|