mirror of
https://github.com/CharaChorder/DeviceManager.git
synced 2026-01-08 02:52:49 +00:00
@@ -35,6 +35,7 @@
|
||||
let redoQueue: Change[] = []
|
||||
|
||||
async function save() {
|
||||
try {
|
||||
const port = $serialPort
|
||||
if (!port) return
|
||||
$syncStatus = "uploading"
|
||||
@@ -112,8 +113,13 @@
|
||||
$deviceChords = $chords.filter(({deleted}) => !deleted).map(({actions, phrase}) => ({actions, phrase}))
|
||||
$deviceSettings = $settings.map(({value}) => value)
|
||||
$changes = []
|
||||
} catch (e) {
|
||||
alert(e)
|
||||
console.error(e)
|
||||
} finally {
|
||||
$syncStatus = "done"
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<button
|
||||
|
||||
Reference in New Issue
Block a user