mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-14 20:33:31 +01:00
Array.find is apparently not a thing.
This commit is contained in:
@@ -1504,7 +1504,7 @@ var Options = Module("options", {
|
|||||||
|
|
||||||
function val(obj) {
|
function val(obj) {
|
||||||
if (isArray(opt.defaultValue)) {
|
if (isArray(opt.defaultValue)) {
|
||||||
let val = Array.find(obj, re => (re.key == extra.key));
|
let val = [].find.call(obj, re => (re.key == extra.key));
|
||||||
return val && val.result;
|
return val && val.result;
|
||||||
}
|
}
|
||||||
if (hasOwnProperty(opt.defaultValue, extra.key))
|
if (hasOwnProperty(opt.defaultValue, extra.key))
|
||||||
|
|||||||
Reference in New Issue
Block a user