| @@ -1 +1 @@ | |||
| 1 | - | if("solution" in tsProjectInfos){let currentFile=document.querySelector(".mdl-tabs__tab.ts-editor-tab.is-active").innerText;tsProjectInfos.solution.textFileInfos.forEach((file)=>{if (file.name===currentFile){console.warn(file.content)}})}else{console.warn("No solution found (probably a personal project)")} | |
| 1 | + | if("solution" in tsProjectInfos){let currentFile=document.querySelector(".mdl-tabs__tab.ts-editor-tab.is-active").innerText;tsProjectInfos.solution.textFileInfos.forEach((file)=>{if (file.name===currentFile){console.warn(file.content)}})}else{console.error("No solution found (probably a personal project)")} | |
swee / TechSmart cheat
Last active 3 months ago
swee revised this gist 3 months ago · 13c886a
1 file changed, 1 insertion, 1 deletion
swee revised this gist 3 months ago · 4a21253
1 file changed, 1 insertion, 1 deletion
| @@ -1 +1 @@ | |||
| 1 | - | if("solution" in tsProjectInfos){let currentFile=document.querySelector(".mdl-tabs__tab.ts-editor-tab.is-active").innerText;tsProjectInfos.solution.textFileInfos.forEach((file) => {if (file.name === currentFile){ console.warn(file.content); }});}else{alert("No solution found (probably a personal project)")} | |
| 1 | + | if("solution" in tsProjectInfos){let currentFile=document.querySelector(".mdl-tabs__tab.ts-editor-tab.is-active").innerText;tsProjectInfos.solution.textFileInfos.forEach((file)=>{if (file.name===currentFile){console.warn(file.content)}})}else{console.warn("No solution found (probably a personal project)")} | |
swee revised this gist 3 months ago · 5a6e4e8
1 file changed, 1 insertion
| @@ -0,0 +1 @@ | |||
| 1 | + | if("solution" in tsProjectInfos){let currentFile=document.querySelector(".mdl-tabs__tab.ts-editor-tab.is-active").innerText;tsProjectInfos.solution.textFileInfos.forEach((file) => {if (file.name === currentFile){ console.warn(file.content); }});}else{alert("No solution found (probably a personal project)")} | |