mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-04 11:24:10 +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) {
|
||||
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;
|
||||
}
|
||||
if (hasOwnProperty(opt.defaultValue, extra.key))
|
||||
|
||||
Reference in New Issue
Block a user