Support installing external JARs

This commit is contained in:
schroda
2026-07-14 00:27:13 +02:00
parent f3748017eb
commit 732c5d2083
3 changed files with 3 additions and 2 deletions

View File

@@ -172,7 +172,7 @@ export function Extensions({ tabsMenuHeight }: { tabsMenuHeight: number }) {
const handleExtensionUpdate = useCallback(() => setRefetchExtensions({}), []);
const submitExternalExtension = (file: File) => {
if (!file.name.toLowerCase().endsWith('apk')) {
if (!file.name.toLowerCase().match(/\.(apk|jar)$/g)) {
makeToast(t`Invalid filetype`, 'error');
return;
}