mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-16 17:40:46 -04:00
low voltage anode...
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-C46PGsPy.js"></script>
|
||||
<script type="module" crossorigin src="/assets/index-DcIs3Dc0.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/assets/index-BxUpjkzh.css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
@@ -86,10 +86,11 @@ io.on('connection', (socket) => {
|
||||
throw new Error('video source required');
|
||||
}
|
||||
if (target.type === 'rover') {
|
||||
if (!roverManager.rovers.has(target.id)) {
|
||||
const baseId = target.id.endsWith('-audio') ? target.id.slice(0, -6) : target.id;
|
||||
if (!roverManager.rovers.has(baseId)) {
|
||||
throw new Error('Rover offline');
|
||||
}
|
||||
if (!canViewRover(socket, target.id)) {
|
||||
if (!canViewRover(socket, baseId)) {
|
||||
throw new Error('Not authorized for video');
|
||||
}
|
||||
} else if (target.type === 'room') {
|
||||
|
||||
Reference in New Issue
Block a user