rudeshark.net/src/client/scripts/please-login.ts
2021-03-23 17:30:14 +09:00

15 lines
268 B
TypeScript

import { $i } from '@client/account';
import { i18n } from '@client/i18n';
import { dialog } from '@client/os';
export function pleaseLogin() {
if ($i) return;
dialog({
title: i18n.locale.signinRequired,
text: null
});
throw new Error('signin required');
}