mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-10-31 06:25:13 +08:00
⛅ Sync 2026-10-04 22:17:19
This commit is contained in:
1 parent
d132e566f2
commit
aef2d67550
143 files changed
+442
-212
No files matched your search
@@ -546,7 +546,7 @@ function probeAssocListCandidates(candidates, probeFn) {
|
||||
|
||||
function tryNext() {
|
||||
if (index >= candidates.length)
|
||||
return [];
|
||||
return Promise.resolve([]);
|
||||
|
||||
return probeFn(candidates[index++]).then((entries) => {
|
||||
if (Array.isArray(entries) && entries.length)
|
||||
@@ -604,8 +604,8 @@ return baseclass.extend({
|
||||
}),
|
||||
|
||||
loadIwinfoResolver(radios, networks) {
|
||||
return L.resolveDefault(callIwinfoDevices(), {}).then((res) => {
|
||||
return buildIwinfoResolver(radios, networks, res?.devices);
|
||||
return L.resolveDefault(callIwinfoDevices(), []).then((devices) => {
|
||||
return buildIwinfoResolver(radios, networks, devices);
|
||||
}).catch(() => ({
|
||||
deviceLookup: Object.create(null),
|
||||
aliasMap: Object.create(null),
|
||||
|
||||
Reference in new issue
Block a user