Web: expose the API interface as window.API

This makes developing/debugging things a bit easier.
This commit is contained in:
Sybren A. Stüvel 2022-05-19 16:15:36 +02:00
parent fd0ff82352
commit f4299018ef

View File

@ -24,5 +24,7 @@ app.mount('#app')
// For debugging.
import { useJobs } from '@/stores/jobs';
import { useNotifs } from '@/stores/notifications';
import * as API from '@/manager-api';
window.jobs = useJobs();
window.notifs = useNotifs();
window.API = API;