14 lines
465 B
JavaScript
14 lines
465 B
JavaScript
|
const { invoke } = window.__TAURI__.tauri;
|
||
|
|
||
|
function call_camera_connect() {
|
||
|
invoke("connect_to_camera", {})
|
||
|
.then(() => {
|
||
|
let cam_button = document.getElementById("camera_connect_button");
|
||
|
cam_button.innerText = "Connecting to Camera";
|
||
|
cam_button.classList.remove("text-semibold");
|
||
|
cam_button.classList.remove("text-white");
|
||
|
cam_button.classList.add("text-neutral-400")
|
||
|
})
|
||
|
.catch((e) => console.error(e));
|
||
|
}
|