Total Complexity | 2 |
Complexity/F | 1 |
Lines of Code | 13 |
Function Count | 2 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
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 |