16 lines
481 B
JavaScript
16 lines
481 B
JavaScript
// vueuse-setup.js
|
|
// Setup-module voor VueUse in de chat client.
|
|
// - Importeert benodigde composables uit '@vueuse/core'
|
|
// - Maakt ze beschikbaar via window.VueUse zodat static assets
|
|
// onder eveai_chat_client/static ze kunnen gebruiken zonder
|
|
// directe npm-imports.
|
|
|
|
import { useEventListener, useWindowSize } from '@vueuse/core';
|
|
|
|
if (typeof window !== 'undefined') {
|
|
window.VueUse = Object.assign({}, window.VueUse, {
|
|
useEventListener,
|
|
useWindowSize,
|
|
});
|
|
}
|