Minor fixes.

This commit is contained in:
Zied Aouini 2021-11-09 16:45:33 +01:00
parent b5cd4c3ec4
commit 665f886f7d
4 changed files with 20 additions and 28 deletions

View file

@ -13,9 +13,6 @@ If not, see <http://www.gnu.org/licenses/>.
------------------------------------------------------------------------------------------------------------------------
*/
var success_count = 0;
var error_count = 0;
function upload_to_nfstream(msg) {
chrome.storage.local.get({export_port: '28314'},
function (items) {
@ -27,9 +24,8 @@ function upload_to_nfstream(msg) {
true);
xhr.setRequestHeader("Content-type", "application/json");
xhr.send(JSON.stringify(msg));
success_count++;
} catch (e) {
error_count++;
// ignore
}});
}