mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-16 15:07:36 -07:00
14 lines
244 B
TypeScript
14 lines
244 B
TypeScript
import { $i } from '@/account';
|
|
import { i18n } from '@/i18n';
|
|
import { alert } from '@/os';
|
|
|
|
export function pleaseLogin() {
|
|
if ($i) return;
|
|
|
|
alert({
|
|
title: i18n.ts.signinRequired,
|
|
text: null
|
|
});
|
|
|
|
throw new Error('signin required');
|
|
}
|