Skip to content

Commit

Permalink
Solve issue #74
Browse files Browse the repository at this point in the history
  • Loading branch information
didierfred committed Dec 28, 2023
1 parent b3cfe50 commit ca1d15b
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# GreenIT-Analysis (V3.1.3)
# GreenIT-Analysis (V3.1.4)


GreenIT-Analysis est une extension pour navigateur qui vous permet de quantifier les impacts environnementaux d'un parcours utilisateur complet, même derrière un firewall et / ou une authentification applicative. L'outil vérifie également l'utilisation de bonnes pratiques visant à diminuer ces impacts.
Expand Down
2 changes: 1 addition & 1 deletion _locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
"description": "Launch Analysis"
},
"menuText": {
"message": "GreenIT Analysis V3.1.3 is install in your browser and accessible via the devtool panel (F12 or CMD + ALT + i sur Mac",
"message": "GreenIT Analysis V3.1.4 is install in your browser and accessible via the devtool panel (F12 or CMD + ALT + i sur Mac",
"description": "Text when you click on the plugin's icone"
},
"menuMoreInformation": {
Expand Down
2 changes: 1 addition & 1 deletion _locales/fr/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
"description": "Launch Analysis"
},
"menuText": {
"message": "GreenIT Analysis V3.1.3 est installé et accessible via le panneau développeur (F12 ou CMD + ALT + i sur Mac) ",
"message": "GreenIT Analysis V3.1.4 est installé et accessible via le panneau développeur (F12 ou CMD + ALT + i sur Mac) ",
"description": "Text when you click on the plugin's icone"
},
"menuMoreInformation": {
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"description": "GreenIT-Analysis",
"manifest_version": 2,
"name": "GreenIT-Analysis",
"version": "3.1.3",
"version": "3.1.4",
"homepage_url": "https://github.com/didierfred/GreenIT-Analysis",
"icons" : {
"48": "icons/logo-48.png"
Expand Down
2 changes: 1 addition & 1 deletion manifestV2.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"description": "GreenIT-Analysis",
"manifest_version": 2,
"name": "GreenIT-Analysis",
"version": "3.1.3",
"version": "3.1.4",
"homepage_url": "https://github.com/didierfred/GreenIT-Analysis",
"icons" : {
"48": "icons/logo-48.png"
Expand Down
2 changes: 1 addition & 1 deletion manifestV3.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"description": "GreenIT-Analysis",
"manifest_version": 3,
"name": "GreenIT-Analysis",
"version": "3.1.3",
"version": "3.1.4",
"homepage_url": "https://github.com/didierfred/GreenIT-Analysis",
"icons" : {
"48": "icons/logo-48.png"
Expand Down
9 changes: 5 additions & 4 deletions script/greenpanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,10 +197,10 @@ function MeasuresAcquisition(rules) {
measures.responsesSizeUncompress += entry.response.content.size;
}
else {
// In firefox , entry.response.content.size can sometimes be undefined
if (entry.response.content.size) measures.responsesSize += entry.response.content.size;
//debug(() => `entry size = ${entry.response.content.size} , responseSize = ${measures.responsesSize}`);
}
measures.responsesSize += entry.response.bodySize?entry.response.bodySize:0;
measures.responsesSizeUncompress += entry.response.content.size?entry.response.content.size:0;
}

});
if (analyseBestPractices) localRulesChecker.sendEvent('harReceived',measures);

Expand All @@ -210,6 +210,7 @@ function MeasuresAcquisition(rules) {
});
}


function getResourcesMeasure() {
if (chrome.devtools.inspectedWindow.getResources) chrome.devtools.inspectedWindow.getResources((resources) => {
resources.forEach(resource => {
Expand Down

0 comments on commit ca1d15b

Please sign in to comment.