Skip to content

Commit

Permalink
feat: expose id attribute in ScriptElements
Browse files Browse the repository at this point in the history
  • Loading branch information
umair-choudhary committed Sep 23, 2019
1 parent 52cb0c9 commit cb04779
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lighthouse-core/gather/gatherers/script-elements.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ function collectAllScriptElements() {
return {
type: script.type || null,
src: script.src || null,
id: script.id || null,
async: script.async,
defer: script.defer,
source: /** @type {'head'|'body'} */ (script.closest('head') ? 'head' : 'body'),
Expand Down Expand Up @@ -81,6 +82,7 @@ class ScriptElements extends Gatherer {
devtoolsNodePath: '',
type: null,
src: record.url,
id: null,
async: false,
defer: false,
source: 'network',
Expand Down

0 comments on commit cb04779

Please sign in to comment.