mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-15 17:12:59 -04:00
wuhg
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -11,7 +11,7 @@
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
|
||||
<meta name="apple-mobile-web-app-title" content="Multi Roomba Rover" />
|
||||
<title>Multi Roomba Rover</title>
|
||||
<script type="module" crossorigin src="/assets/index-D_Vm7aqj.js"></script>
|
||||
<script type="module" crossorigin src="/assets/index-7BkQjAbh.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/assets/index-BxUpjkzh.css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
@@ -13,11 +13,16 @@ function normalizeEntry(entry) {
|
||||
if (typeof entry === 'object') {
|
||||
if (entry.type && entry.id) {
|
||||
const id = String(entry.id);
|
||||
const audioId = entry.audioId ? String(entry.audioId) : null;
|
||||
let key = entry.key;
|
||||
if (!key) {
|
||||
key = entry.type === 'room' ? `room:${id}` : id;
|
||||
}
|
||||
return {
|
||||
type: entry.type,
|
||||
id,
|
||||
key: entry.key || `${entry.type}:${id}`,
|
||||
audioId: entry.audioId ? String(entry.audioId) : null,
|
||||
key,
|
||||
audioId,
|
||||
};
|
||||
}
|
||||
if (entry.roverId) {
|
||||
@@ -139,6 +144,9 @@ export function useVideoRequests(sourceList = []) {
|
||||
if (sources[entry.key]) {
|
||||
next[entry.key] = sources[entry.key];
|
||||
}
|
||||
if (entry.audioId && sources[entry.audioId]) {
|
||||
next[entry.audioId] = sources[entry.audioId];
|
||||
}
|
||||
});
|
||||
return next;
|
||||
}, [normalizedKey, sources, normalizedEntries]);
|
||||
|
||||
Reference in New Issue
Block a user