freedomjs/freedom

View on GitHub
demo/datachannels/page.js

Summary

Maintainability
A
1 hr
Test Coverage

Function negotiateState has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

var negotiateState = function (text, button, channel) {
  var state = {at: 0, text: text, button: button, channel: channel};
  button.innerText = 'CreateOffer';
  channel.on('ice', function (ice) {
    state.text.value += '\n' + ice;
Severity: Minor
Found in demo/datachannels/page.js - About 1 hr to fix

There are no issues that match your filters.

Category
Status