mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
add isAndroid flag
This commit is contained in:
@@ -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();
|
||||
}
|
||||
Reference in New Issue
Block a user