add ability to enable raw packet logging from dev tools console

This commit is contained in:
liamcottle
2025-02-14 13:01:36 +13:00
parent 05e7a9c659
commit 091fff7090
2 changed files with 22 additions and 0 deletions

View File

@@ -5,6 +5,7 @@ import "./style.css";
import App from './components/App.vue';
import GlobalState from "./js/GlobalState.js";
import Connection from "./js/Connection.js";
// helper function that force redirects to the main page if there is no database connection
function handleRouteThatRequiresDatabase() {
@@ -76,6 +77,10 @@ navigator.serviceWorker.addEventListener("message", async (event) => {
}
});
// access Connection class from window
// this allows typing "Connection.log = true" in Chrome dev tools
window.Connection = Connection;
createApp(App)
.use(router)
.use(vClickOutside)