UNPKG
focus-lock
Version:
latest (1.3.6)
1.3.6
1.3.5
1.3.4
1.3.3
1.3.2
1.3.1
1.3.0
1.2.0
1.1.0
1.0.1
1.0.0
0.11.6
0.11.5
0.11.4
0.11.3
0.11.2
0.11.1
0.11.0
0.10.2
0.10.1
0.9.2
0.9.1
0.9.0
0.8.1
0.8.0
0.7.0
0.6.8
0.6.7
0.6.6
0.6.5
0.6.4
0.6.3
0.6.2
0.6.1
0.6.0
0.5.4
0.5.3
0.5.2
0.5.1
0.5.0
0.4.2
0.4.1
0.4.0
0.3.0
0.2.4
0.2.3
0.2.2
0.2.1
0.2.0
0.1.0
0.0.6
0.0.4
0.0.3
0.0.2
0.0.2-2
0.0.2-1
0.0.1
DOM trap for a focus
github.com/theKashey/focus-lock
theKashey/focus-lock
focus-lock
/
dist
/
es5
/
utils
/
safe.js
13 lines
(12 loc)
•
256 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
"use strict"
;
Object
.
defineProperty
(
exports
,
"__esModule"
, {
value
:
true
});
exports
.
safeProbe
=
void
0
;
var
safeProbe =
function
(
cb
) {
try
{
return
cb
(); }
catch
(e) {
return
undefined
; } };
exports
.
safeProbe
= safeProbe;