mirror of
https://github.com/glanceapp/glance.git
synced 2025-02-23 13:50:52 +01:00
Add comment
This commit is contained in:
parent
afe6ad6bfc
commit
7e345dd1f9
@ -28,6 +28,9 @@ export function clamp(value, min, max) {
|
||||
return Math.min(Math.max(value, min), max);
|
||||
}
|
||||
|
||||
// NOTE: inconsistent behavior between browsers when it comes to
|
||||
// whether the newly opened tab gets focused or not, potentially
|
||||
// depending on the event that this function is called from
|
||||
export function openURLInNewTab(url, focus = true) {
|
||||
const newWindow = window.open(url, '_blank', 'noopener,noreferrer');
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user