(listKey = UI.listTab2?.value)
| 176 | } |
| 177 | |
| 178 | async function updatePayloadUpdatedAt(listKey = UI.listTab2?.value) { |
| 179 | if (!UI.payloadUpdatedAt) return; |
| 180 | const updatedAtKey = getListUpdatedAtStorageKey(listKey); |
| 181 | if (!updatedAtKey) { |
| 182 | setPayloadUpdatedAtText(""); |
| 183 | return; |
| 184 | } |
| 185 | |
| 186 | try { |
| 187 | const data = await getStorageData(updatedAtKey); |
| 188 | setPayloadUpdatedAtText(formatListUpdatedAt(data[updatedAtKey])); |
| 189 | } catch (error) { |
| 190 | console.warn("Could not load list updated timestamp:", error); |
| 191 | setPayloadUpdatedAtText(""); |
| 192 | } |
| 193 | } |
| 194 | |
| 195 | function getEngineSortPriority(engineKey) { |
| 196 | const normalizedKey = String(engineKey || "").toLowerCase(); |
no test coverage detected