(resourceType: string)
| 111 | } |
| 112 | |
| 113 | public resourceTypeToSuffix(resourceType: string): string { |
| 114 | switch (resourceType) { |
| 115 | case 'Script': |
| 116 | return '.js'; |
| 117 | case 'Stylesheet': |
| 118 | return '.css'; |
| 119 | case 'Document': |
| 120 | return '.html'; |
| 121 | default: |
| 122 | return '.unknown'; |
| 123 | } |
| 124 | } |
| 125 | |
| 126 | public async logScript( |
| 127 | url: string, |