Web: add some handy debugging functions
This commit is contained in:
parent
4734e3c297
commit
64af9e4ae4
@ -65,6 +65,7 @@ function objectEmpty(o) {
|
|||||||
if (!o) return true;
|
if (!o) return true;
|
||||||
return Object.entries(o).length == 0;
|
return Object.entries(o).length == 0;
|
||||||
}
|
}
|
||||||
|
window.objectEmpty = objectEmpty;
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
props: [
|
props: [
|
||||||
|
@ -8,6 +8,9 @@ import router from './router'
|
|||||||
import { DateTime } from 'luxon';
|
import { DateTime } from 'luxon';
|
||||||
window.DateTime = DateTime;
|
window.DateTime = DateTime;
|
||||||
|
|
||||||
|
// Help with debugging. This removes any Vue reactivity.
|
||||||
|
window.plain = (x) => { return JSON.parse(JSON.stringify(x)) };
|
||||||
|
|
||||||
const app = createApp(App)
|
const app = createApp(App)
|
||||||
app.use(router)
|
app.use(router)
|
||||||
app.mount('#app')
|
app.mount('#app')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user