We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b902aea commit 8f621a0Copy full SHA for 8f621a0
tns-core-modules/debugger/debugger.ts
@@ -166,10 +166,12 @@ export namespace NetworkAgent {
166
function mimeTypeToType(mimeType: string): string {
167
let type: string = "Document";
168
169
- if (mimeType.indexOf("image") === 0) {
170
- type = "Image";
171
- } else if (mimeType.indexOf("javascript") !== -1 || mimeType.indexOf("json") !== -1) {
172
- type = "Script";
+ if (mimeType) {
+ if (mimeType.indexOf("image") === 0) {
+ type = "Image";
+ } else if (mimeType.indexOf("javascript") !== -1 || mimeType.indexOf("json") !== -1) {
173
+ type = "Script";
174
+ }
175
}
176
177
return type;
0 commit comments