mirror of
https://github.com/nfstream/nfstream.git
synced 2026-04-29 15:39:27 +00:00
Minor fixes.
This commit is contained in:
parent
b5cd4c3ec4
commit
665f886f7d
4 changed files with 20 additions and 28 deletions
|
|
@ -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
|
||||
}});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue