| OLD | NEW |
| 1 onconnect = e => { | 1 onconnect = e => { |
| 2 var port = e.ports[0]; | 2 var port = e.ports[0]; |
| 3 port.onmessage = (e) => { | 3 port.onmessage = (e) => { |
| 4 if (e.data.type == 'COUNT_FEATURE') | 4 if (e.data.type == 'COUNT_FEATURE') |
| 5 internals.countFeature(e.data.feature); | 5 internals.countFeature(e.data.feature); |
| 6 else if (e.data.type == 'COUNT_DEPRECATION') | 6 else if (e.data.type == 'COUNT_DEPRECATION') |
| 7 internals.countDeprecation(e.data.feature); | 7 internals.countDeprecation(e.data.feature); |
| 8 port.postMessage('COUNTED'); | |
| 9 }; | 8 }; |
| 10 port.postMessage('CONNECTED'); | 9 port.postMessage('CONNECTED'); |
| 11 } | 10 } |
| OLD | NEW |