GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Branch master (81a8a0)
by Vincent
02:52
created

app.js ➔ ???   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
var HasClass = require('./helpers/hasClass');
2
import Homepage from './pages/homepage';
3
import Navigation from './helpers/navigation';
4
5
var body = new HasClass('body');
6
7
class App {
8
    constructor() {
9
        this.injector = {app: this};
10
        new Navigation;
0 ignored issues
show
Unused Code Best Practice introduced by
The object created with new Navigation() is not used but discarded. Consider invoking another function instead of a constructor if you are doing this purely for side effects.
Loading history...
11
    }
12
13
    start() {
14
        body.has('home', () => {
15
            // This code will run only on the homepage
16
            this.home = new Homepage(this.injector);
17
        });
18
    }
19
}
20
21
module.exports = new App();