Web: cleanup, simplify plain(x) function a bit

This commit is contained in:
Sybren A. Stüvel 2022-05-19 15:40:37 +02:00
parent 744fabea78
commit 6a0e4c6e56

View File

@ -9,8 +9,8 @@ import router from '@/router/index'
import { DateTime } from 'luxon';
window.DateTime = DateTime;
// This removes any Vue reactivity.
window.plain = (x) => { return JSON.parse(JSON.stringify(x)) };
// plain removes any Vue reactivity.
window.plain = (x) => JSON.parse(JSON.stringify(x));
const app = createApp(App)
const pinia = createPinia()