- Updated all component headers and documentation
- Changed navbar and footer branding
- Updated homepage hero badge
- Modified page title in index.html
- Simplified footer text to 'Built with ❤️'
- Consistent V2 capitalization across all references
13 lines
367 B
JavaScript
13 lines
367 B
JavaScript
export var focusOn = function (target, focusOptions) {
|
|
if (!target) {
|
|
// not clear how, but is possible https://github.com/theKashey/focus-lock/issues/53
|
|
return;
|
|
}
|
|
if ('focus' in target) {
|
|
target.focus(focusOptions);
|
|
}
|
|
if ('contentWindow' in target && target.contentWindow) {
|
|
target.contentWindow.focus();
|
|
}
|
|
};
|