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;
|
||||
return Object.entries(o).length == 0;
|
||||
}
|
||||
window.objectEmpty = objectEmpty;
|
||||
|
||||
export default {
|
||||
props: [
|
||||
|
@ -8,6 +8,9 @@ import router from './router'
|
||||
import { DateTime } from 'luxon';
|
||||
window.DateTime = DateTime;
|
||||
|
||||
// Help with debugging. This removes any Vue reactivity.
|
||||
window.plain = (x) => { return JSON.parse(JSON.stringify(x)) };
|
||||
|
||||
const app = createApp(App)
|
||||
app.use(router)
|
||||
app.mount('#app')
|
||||
|
Loading…
x
Reference in New Issue
Block a user