mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-24 17:51:51 +02:00
Merge pull request #4137 from overleaf/jpa-fix-metrics-collection
[PdfJsMetrics] fix metrics collection with disabled service worker GitOrigin-RevId: 607ecd15a3b95b33a45506c489557e5116168c3d
This commit is contained in:
@@ -78,6 +78,7 @@ function submitCompileMetrics(metrics) {
|
||||
function submitPDFBandwidth(metrics) {
|
||||
const metricsFlat = {}
|
||||
Object.entries(metrics).forEach(([section, items]) => {
|
||||
if (!items) return
|
||||
Object.entries(items).forEach(([key, value]) => {
|
||||
metricsFlat[section + '_' + key] = value
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user