Skip to content
Snippets Groups Projects
Commit 39309402 authored by Yuriy Maksymets's avatar Yuriy Maksymets
Browse files

Fixed formatting

parent f0249c16
No related branches found
No related tags found
1 merge request!65Simple shape recognition
Pipeline #106621 passed
......@@ -13,16 +13,14 @@
/>
<script>
if (navigator.serviceWorker) {
navigator.serviceWorker
.register("service-worker.js")
.then(
(registration) =>
console.log(
`Service worker registered on scope ${registration.scope}`,
),
(reason) =>
console.log(`Service worker failed to register ~ ${reason}`),
)
navigator.serviceWorker.register("service-worker.js").then(
(registration) =>
console.log(
`Service worker registered on scope ${registration.scope}`,
),
(reason) =>
console.log(`Service worker failed to register ~ ${reason}`),
)
}
</script>
</head>
......
......@@ -223,7 +223,10 @@ function drawRecognizedUpcoming(points) {
function drawRecognized(pathID, points) {
drawIfRecognized(points, (newPoints) =>
room.replacePath(pathID, newPoints.map((x) => attributedPoint(...x))),
room.replacePath(
pathID,
newPoints.map((x) => attributedPoint(...x)),
),
)
clearRecognizedUpcoming()
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment