Webview: minor improvements

This commit is contained in:
Johannes Kirschbauer
2024-06-15 11:34:54 +02:00
parent 062718fdbc
commit 5d01ad5732
2 changed files with 6 additions and 3 deletions

View File

@@ -14,7 +14,6 @@ if (import.meta.env.DEV && !(root instanceof HTMLElement)) {
);
}
console.log(import.meta.env);
if (import.meta.env.DEV) {
console.log("Development mode");
// Load the debugger in development mode
@@ -27,7 +26,7 @@ if (import.meta.env.DEV) {
console.debug("Python API call", { method, data });
setTimeout(() => {
const mock = getFakeResponse(method, data);
console.log("mock", { mock });
console.log("Returning mock-data: ", { mock });
window.clan[method](JSON.stringify(mock));
}, 200);