iwmlib/lib/inspect.js

14 lines
341 B
JavaScript
Raw Normal View History

2019-03-21 09:57:27 +01:00
export class Inspect {
// Code inspection functions
2019-07-18 12:26:39 +02:00
static allScriptSources() {
2019-03-21 09:57:27 +01:00
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
}
}