@semantic-ui/utils
Advanced tools
Comparing version 0.1.4 to 0.1.5
@@ -11,3 +11,3 @@ { | ||
}, | ||
"version": "0.1.4" | ||
"version": "0.1.5" | ||
} |
@@ -44,3 +44,3 @@ /* | ||
/*------------------- | ||
Browser | ||
Browser | ||
--------------------*/ | ||
@@ -52,2 +52,14 @@ | ||
export const openLink = (url, { newWindow = false, target, event } = {}) => { | ||
if(newWindow) { | ||
window.open(url); | ||
} | ||
else { | ||
window.location.href = url; | ||
} | ||
if(event) { | ||
event.preventDefault(); | ||
} | ||
}; | ||
export const getKeyFromEvent = (event) => { | ||
@@ -54,0 +66,0 @@ let pressedKey = event?.key; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
101907
2888