mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-13 06:03:09 +02:00
c2370a1be6
* chore: Add the SPDX information to each file Add copyright and licensing information as defined in version 3.0 of the REUSE Specification. * tweak format --------- Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
19 lines
540 B
TypeScript
19 lines
540 B
TypeScript
/*
|
|
* SPDX-FileCopyrightText: syuilo and other misskey contributors
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
*/
|
|
|
|
// https://vitejs.dev/config/build-options.html#build-modulepreload
|
|
import 'vite/modulepreload-polyfill';
|
|
|
|
import '@/style.scss';
|
|
import { mainBoot } from './boot/main-boot';
|
|
import { subBoot } from './boot/sub-boot';
|
|
|
|
const subBootPaths = ['/share', '/auth', '/miauth', '/signup-complete'];
|
|
|
|
if (subBootPaths.some(i => location.pathname === i || location.pathname.startsWith(i + '/'))) {
|
|
subBoot();
|
|
} else {
|
|
mainBoot();
|
|
}
|