summaryrefslogtreecommitdiff
path: root/src/client/scripts/please-login.ts
blob: a584e9fa9671077e2b1d39c89b757ba3a33203a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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');
}