Completed
Push — master ( 9c38a1...6a54b8 )
by Inumidun
9s
created

src/history.js   A

Complexity

Total Complexity 0
Complexity/F 0

Size

Lines of Code 1
Function Count 0

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 0
wmc 0
c 0
b 0
f 0
nc 1
mnd 0
bc 0
fnc 0
dl 0
loc 1
rs 10
bpm 0
cpm 0
noi 0
1
export class History {
2
  static path = () => window.location.pathname;
3
4
  static query = () => window.location.search;
5
6
  static state = () => window.history.state;
7
8
  static push = (state, title, path) => {
9
    window.history.pushState(state, title, path);
10
  }
11
12
  static back = () => {
13
    window.history.back();
14
  }
15
}
16