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

$(document).ready   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 9

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 9
rs 9.6666

1 Function

Rating   Name   Duplication   Size   Complexity  
A 0 7 2
1
$(document).ready(function () {
2
    API.runtime.onMessage.addListener(function (msg) {
3
        $('.container').show();
4
        //console.log('Method call', msg.method);
5
        if(msg.hasOwnProperty('setIframeUsername')){
6
            $('.username').text(msg.setIframeUsername);
7
        }
8
    });
9
});