Completed
Pull Request — master (#241)
by
unknown
04:00 queued 01:53
created

Components/HeroPostHeader/Partials/Share/script.js   A

Complexity

Total Complexity 2
Complexity/F 1

Size

Lines of Code 13
Function Count 2

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 0
nc 1
dl 0
loc 13
rs 10
c 1
b 0
f 0
wmc 2
mnd 0
bc 2
fnc 2
bpm 1
cpm 1
noi 0

2 Functions

Rating   Name   Duplication   Size   Complexity  
A script.js ➔ openShareLink 0 4 1
A script.js ➔ getOptions 0 3 1
1
const options = {
2
  windowWidth: 600,
3
  windowHeight: 660
4
}
5
6
export function getOptions () {
7
  return options
8
}
9
10
export function openShareLink ($link) {
11
  const url = $link.attr('href')
12
  window.open(url, '_blank', `height=${options.windowHeight},width=${options.windowWidth},toolbar=false,location=false,menubar=false`)
13
}
14