2023-07-27 08:31:52 +03:00
|
|
|
/*
|
|
|
|
* SPDX-FileCopyrightText: syuilo and other misskey contributors
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
*/
|
|
|
|
|
2023-05-15 13:08:46 +03:00
|
|
|
// https://vitejs.dev/config/build-options.html#build-modulepreload
|
|
|
|
import 'vite/modulepreload-polyfill';
|
|
|
|
|
|
|
|
import '@/style.scss';
|
2023-09-19 10:37:43 +03:00
|
|
|
import { mainBoot } from '@/boot/main-boot.js';
|
|
|
|
import { subBoot } from '@/boot/sub-boot.js';
|
2023-05-15 13:08:46 +03:00
|
|
|
|
2023-05-26 08:06:52 +03:00
|
|
|
const subBootPaths = ['/share', '/auth', '/miauth', '/signup-complete'];
|
2023-05-24 03:43:38 +03:00
|
|
|
|
|
|
|
if (subBootPaths.some(i => location.pathname === i || location.pathname.startsWith(i + '/'))) {
|
2023-05-15 13:08:46 +03:00
|
|
|
subBoot();
|
|
|
|
} else {
|
|
|
|
mainBoot();
|
|
|
|
}
|