Is there another property we can put on the `frame` payload (that you changed below) to make this even more straightforward?

```javascript
if (frame.fromNodeInspector) {
  type = WebInspector.resourceTypes.Script;
}
```