Completed
Pull Request — master (#137)
by Sander
42s
created

$(document).ready   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 10

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 10
rs 9.4285

1 Function

Rating   Name   Duplication   Size   Complexity  
A 0 8 2
1
$(document).ready(function () {
2
    API.runtime.onMessage.addListener(function (msg, sender) {
0 ignored issues
show
Unused Code introduced by
The parameter sender is not used and could be removed.

This check looks for parameters in functions that are not used in the function body and are not followed by other parameters which are used inside the function.

Loading history...
3
        $('.container').show();
4
        //console.log('Method call', msg.method);
5
        console.log(msg);
0 ignored issues
show
Debugging Code introduced by
console.log looks like debug code. Are you sure you do not want to remove it?
Loading history...
6
        if(msg.hasOwnProperty('setIframeUsername')){
7
            $('.username').text(msg.setIframeUsername);
8
        }
9
    });
10
});