iwmlib/inspect.js
2019-03-21 09:57:27 +01:00

15 lines
345 B
JavaScript
Executable File

export class Inspect {
// Code inspection functions
static allScriptSources()
{
let sources = []
let scripts = document.getElementsByTagName('script')
for (let i = 0; i < scripts.length; i++) {
console.dir(scripts[i])
sources.push(scripts[i])
}
return sources
}
}