add isAndroid flag

This commit is contained in:
Tom (plebeius.eth)
2024-10-13 17:51:54 +02:00
parent c80fc5a284
commit f8c92b3e61
8 changed files with 34 additions and 2 deletions
+8
View File
@@ -0,0 +1,8 @@
import { Capacitor } from '@capacitor/core';
import { Device } from '@capacitor/device';
export const isAndroid = Capacitor.getPlatform() === 'android';
export async function getDeviceInfo() {
return await Device.getInfo();
}